Fix build

This commit is contained in:
Patrick Barron 2021-05-13 10:47:00 -04:00
parent e55f35b62e
commit 81992ef205

View File

@ -172,8 +172,8 @@ namespace MediaBrowser.Providers.Studios
public IEnumerable<string> GetAvailableImages(string file) public IEnumerable<string> GetAvailableImages(string file)
{ {
using (var fileStream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read)); using var fileStream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read);
using (var reader = new StreamReader(fileStream)); using var reader = new StreamReader(fileStream);
var lines = new List<string>(); var lines = new List<string>();
foreach (var line in reader.ReadAllLines()) foreach (var line in reader.ReadAllLines())
@ -184,11 +184,6 @@ namespace MediaBrowser.Providers.Studios
} }
} }
if (!string.IsNullOrWhiteSpace(text))
{
lines.Add(text);
}
return lines; return lines;
} }
} }