Remove unnecessary throws OrmException in AccountResolver
This method doesn't do database lookups directly, so it doesn't throw the exception from them. Change-Id: I742435a6e6dd92b07d1dff9464d73f940e4b0509 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
		@@ -115,7 +115,7 @@ public class AccountResolver {
 | 
				
			|||||||
    return r.size() == 1 ? r.get(0) : null;
 | 
					    return r.size() == 1 ? r.get(0) : null;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  private Account findByUserName(final String userName) throws OrmException {
 | 
					  private Account findByUserName(final String userName) {
 | 
				
			||||||
    AccountState as = byId.getByUsername(userName);
 | 
					    AccountState as = byId.getByUsername(userName);
 | 
				
			||||||
    return as != null ? as.getAccount() : null;
 | 
					    return as != null ? as.getAccount() : null;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user