Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Commit

Permalink
Merge pull request #12 from JakeStevenson/master
Browse files Browse the repository at this point in the history
Remove null-check to more-closely mirror original functionality
  • Loading branch information
JSkimming committed May 6, 2015
2 parents b10c532 + d4640d2 commit 4827e76
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ public override Task CreateAsync(TUser user)
/// <returns>The <typeparamref name="TUser"/> if found; otherwise <c>null</c>.</returns>
public override Task<TUser> FindByNameAsync(string userName)
{
if (string.IsNullOrWhiteSpace(userName))
throw new ArgumentNullException("userName");

ThrowIfInvalid();
return GetUserAggregateAsync(u => u.UserName == userName && u.TenantId.Equals(TenantId));
}
Expand Down Expand Up @@ -162,9 +159,6 @@ public override async Task<TUser> FindAsync(UserLoginInfo login)
/// <returns>The <typeparamref name="TUser"/> if found; otherwise <c>null</c>.</returns>
public override Task<TUser> FindByEmailAsync(string email)
{
if (string.IsNullOrWhiteSpace(email))
throw new ArgumentNullException("email");

ThrowIfInvalid();
return GetUserAggregateAsync(u => u.Email.ToUpper() == email.ToUpper() && u.TenantId.Equals(TenantId));
}
Expand Down

0 comments on commit 4827e76

Please sign in to comment.