From 0af5373f6d9050e9bb5a7cb4ed19742a8893d074 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Sat, 1 Jul 2023 14:07:59 +0200 Subject: [PATCH] Use string.IsNullOrEmpty --- MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs b/MediaBrowser.Providers/Lyric/DefaultLyricProvider.cs index a26f2babbf..ab09f278aa 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); }