From 3f6a63b67c38c6ced436e7e880194182f495543c Mon Sep 17 00:00:00 2001 From: AnonymousDotNet <18776095145@163.com> Date: Tue, 26 Nov 2024 19:33:54 +0800 Subject: [PATCH] perf: Use IsNullOrWhiteSpace --- .../BotSharp.Core/Users/Services/UserService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs b/src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs index 3858d63d..647ed59c 100644 --- a/src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs +++ b/src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs @@ -525,7 +525,7 @@ public class UserService : IUserService public async Task VerifyEmailExisting(string email) { - if (string.IsNullOrEmpty(email)) + if (string.IsNullOrWhiteSpace(email)) { return true; } @@ -542,7 +542,7 @@ public class UserService : IUserService public async Task VerifyPhoneExisting(string phone, string regionCode) { - if (string.IsNullOrEmpty(phone)) + if (string.IsNullOrWhiteSpace(phone)) { return true; }