소스 검색

Use string.IsNullOrEmpty

Niels van Velzen 2 년 전
부모
커밋
0af5373f6d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
             }