浏览代码

remove redundant null check

cvium 2 年之前
父节点
当前提交
a380153f92
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.cs

+ 0 - 5
MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.cs

@@ -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())
             {