Switch to use IsNullOrWhiteSpace

This commit is contained in:
Thorsten Sommer 2025-05-29 21:26:20 +02:00
parent 4f8dfc51c2
commit 0a4bb85e77
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public static class Pdfium
// //
Console.Write(" deploying ..."); Console.Write(" deploying ...");
var library = GetLibraryPath(rid); 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()}"); Console.WriteLine($" failed to find the library path for {rid.ToUserFriendlyName()}");
return; return;

View File

@ -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 == '_') && 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);
} }