mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 22:17:25 -04:00
Use string.IsNullOrEmpty
This commit is contained in:
parent
0ae4d175a1
commit
0af5373f6d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue