Skip to content

Commit 9588223

Browse files
committed
Removing the throw error, since returning null is correct
1 parent 17a12cd commit 9588223

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

eFormAPI/eFormAPI.Web/Services/UserService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ public async Task<EformUser> GetByUsernameAsync(string username)
6363
await userManager.UpdateAsync(user);
6464
return user;
6565
}
66-
67-
throw new Exception("User not found!");
6866
}
6967

7068
return user;

0 commit comments

Comments
 (0)