Browse Source

Use string.IsNullOrEmpty

Niels van Velzen 1 year ago
parent
commit
0af5373f6d
1 changed files with 1 additions and 1 deletions
  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)
         if (path is not null)
         {
         {
             var content = await File.ReadAllTextAsync(path).ConfigureAwait(false);
             var content = await File.ReadAllTextAsync(path).ConfigureAwait(false);
-            if (content.Length != 0)
+            if (!string.IsNullOrEmpty(content))
             {
             {
                 return new LyricFile(path, content);
                 return new LyricFile(path, content);
             }
             }