remove redundant null check

pull/8087/head
cvium 2 years ago
parent f2c7bccb89
commit a380153f92

@ -94,11 +94,6 @@ namespace MediaBrowser.MediaEncoding.Subtitles
{
var subtitleFormats = new List<SubtitleFormat>();
var assembly = typeof(SubtitleFormat).Assembly;
if (assembly == null)
{
_logger.LogError("Missing assembly containing {SubtitleFormatName}", nameof(SubtitleFormat));
return GetFallbackSubtitleFormats();
}
foreach (var type in assembly.GetTypes())
{

Loading…
Cancel
Save