mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 00:12:24 +00:00
Use string.IsNullOrEmpty
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user