Explorar o código

Use string.IsNullOrEmpty

Niels van Velzen %!s(int64=2) %!d(string=hai) anos
pai
achega
0af5373f6d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs

+ 1 - 1
MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs

@@ -32,7 +32,7 @@ public class DefaultLyricProvider : ILyricProvider
         if (path is not null)
         {
             var content = await File.ReadAllTextAsync(path).ConfigureAwait(false);
-            if (content.Length != 0)
+            if (!string.IsNullOrEmpty(content))
             {
                 return new LyricFile(path, content);
             }