Skip to content

Commit 3f6a63b

Browse files
perf: Use IsNullOrWhiteSpace
1 parent b4e0f1d commit 3f6a63b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ public async Task<bool> VerifyUserNameExisting(string userName)
525525

526526
public async Task<bool> VerifyEmailExisting(string email)
527527
{
528-
if (string.IsNullOrEmpty(email))
528+
if (string.IsNullOrWhiteSpace(email))
529529
{
530530
return true;
531531
}
@@ -542,7 +542,7 @@ public async Task<bool> VerifyEmailExisting(string email)
542542

543543
public async Task<bool> VerifyPhoneExisting(string phone, string regionCode)
544544
{
545-
if (string.IsNullOrEmpty(phone))
545+
if (string.IsNullOrWhiteSpace(phone))
546546
{
547547
return true;
548548
}

0 commit comments

Comments
 (0)