Skip to content

The Free Software Media System - Server Backend & API

Revert to old line

cvium7abdf71c49b2
diff --git a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs
index 8403e16abf..78ca76e4b7 100644
--- a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs
+++ b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs
@@ -254,18 +254,8 @@ namespace MediaBrowser.Providers.Subtitles
{
// Bug in analyzer -- https://github.com/dotnet/roslyn-analyzers/issues/5160
#pragma warning disable CA1508
- if (exs == null)
+ (exs ??= new List<Exception>()).Add(ex);
#pragma warning restore CA1508
- {
- exs = new List<Exception>
- {
- ex
- };
- }
- else
- {
- exs.Add(ex);
- }
}
finally
{