Explorar o código

Revert to old line

cvium %!s(int64=3) %!d(string=hai) anos
pai
achega
7abdf71c49
Modificáronse 1 ficheiros con 1 adicións e 11 borrados
  1. 1 11
      MediaBrowser.Providers/Subtitles/SubtitleManager.cs

+ 1 - 11
MediaBrowser.Providers/Subtitles/SubtitleManager.cs

@@ -254,18 +254,8 @@ namespace MediaBrowser.Providers.Subtitles
                 {
                 {
 // Bug in analyzer -- https://github.com/dotnet/roslyn-analyzers/issues/5160
 // Bug in analyzer -- https://github.com/dotnet/roslyn-analyzers/issues/5160
 #pragma warning disable CA1508
 #pragma warning disable CA1508
-                    if (exs == null)
+                    (exs ??= new List<Exception>()).Add(ex);
 #pragma warning restore CA1508
 #pragma warning restore CA1508
-                    {
-                        exs = new List<Exception>
-                        {
-                            ex
-                        };
-                    }
-                    else
-                    {
-                        exs.Add(ex);
-                    }
                 }
                 }
                 finally
                 finally
                 {
                 {