Prevent a possible runtime mistake

Technically, the instance is already validated by intros, but if they get skipped for some reason, the variable might lose its confidence. Automated code correction does things like that a lot.
This commit is contained in:
TwistedUmbrellaX 2024-04-20 09:23:42 -04:00
parent 489e39033d
commit 10ec9eff83
2 changed files with 1 additions and 4 deletions

View File

@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Controller.Entities.TV;

View File

@ -7,7 +7,6 @@ using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Persistence;
using MediaBrowser.Model.Entities;
@ -215,7 +214,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
// Serialize credits
introList.Clear();
foreach (var intro in Instance.Credits)
foreach (var intro in Instance!.Credits)
{
introList.Add(intro.Value);
}