mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 22:32:56 +00:00
Switch to use IsNullOrWhiteSpace
This commit is contained in:
parent
4f8dfc51c2
commit
0a4bb85e77
@ -48,7 +48,7 @@ public static class Pdfium
|
||||
//
|
||||
Console.Write(" deploying ...");
|
||||
var library = GetLibraryPath(rid);
|
||||
if (string.IsNullOrEmpty(library.Path))
|
||||
if (string.IsNullOrWhiteSpace(library.Path))
|
||||
{
|
||||
Console.WriteLine($" failed to find the library path for {rid.ToUserFriendlyName()}");
|
||||
return;
|
||||
|
@ -59,5 +59,5 @@ public sealed class LocalConstantsAnalyzer : DiagnosticAnalyzer
|
||||
}
|
||||
|
||||
private static bool IsUpperCase(string name) => name.All(c => char.IsUpper(c) || char.IsDigit(c) || c == '_') &&
|
||||
!string.IsNullOrEmpty(name) && name.Any(char.IsLetter);
|
||||
!string.IsNullOrWhiteSpace(name) && name.Any(char.IsLetter);
|
||||
}
|
Loading…
Reference in New Issue
Block a user