Преглед изворни кода

remove redundant null check

cvium пре 3 година
родитељ
комит
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())
             {