diff options
| author | Niels van Velzen <git@ndat.nl> | 2023-07-01 14:07:59 +0200 |
|---|---|---|
| committer | Niels van Velzen <git@ndat.nl> | 2023-07-01 14:07:59 +0200 |
| commit | 0af5373f6d9050e9bb5a7cb4ed19742a8893d074 (patch) | |
| tree | 1de2e9a0cff81d0ce83375335dbaba264a435df6 | |
| parent | 0ae4d175a184b86ec0267b1bdb89c8c59d40c325 (diff) | |
Use string.IsNullOrEmpty
| -rw-r--r-- | MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs b/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs index a26f2babb..ab09f278a 100644 --- a/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs +++ b/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); } |
