perf: Use IsNullOrWhiteSpace

This commit is contained in:
AnonymousDotNet 2024-11-26 19:33:54 +08:00
parent b4e0f1d997
commit 3f6a63b67c

View file

@ -525,7 +525,7 @@ public class UserService : IUserService
public async Task<bool> VerifyEmailExisting(string email)
{
if (string.IsNullOrEmpty(email))
if (string.IsNullOrWhiteSpace(email))
{
return true;
}
@ -542,7 +542,7 @@ public class UserService : IUserService
public async Task<bool> VerifyPhoneExisting(string phone, string regionCode)
{
if (string.IsNullOrEmpty(phone))
if (string.IsNullOrWhiteSpace(phone))
{
return true;
}