remove redundant qualifier

This commit is contained in:
Kilian von Pflugk 2024-04-20 12:22:34 +02:00 committed by TwistedUmbrellaX
parent 3acf041087
commit 489e39033d
2 changed files with 9 additions and 9 deletions

View File

@ -209,7 +209,7 @@ public class Entrypoint : IServerEntryPoint
} }
// Unless user initiated, this is likely an overlap // Unless user initiated, this is likely an overlap
if (Entrypoint.AutomaticTaskState == TaskState.Running) if (AutomaticTaskState == TaskState.Running)
{ {
return; return;
} }
@ -222,7 +222,7 @@ public class Entrypoint : IServerEntryPoint
/// </summary> /// </summary>
private void StartTimer() private void StartTimer()
{ {
if (Entrypoint.AutomaticTaskState == TaskState.Running) if (AutomaticTaskState == TaskState.Running)
{ {
_analyzeAgain = true; // Items added during a scan will be included later. _analyzeAgain = true; // Items added during a scan will be included later.
} }

View File

@ -205,7 +205,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
var introList = new List<Intro>(); var introList = new List<Intro>();
// Serialize intros // Serialize intros
foreach (var intro in Plugin.Instance!.Intros) foreach (var intro in Instance!.Intros)
{ {
introList.Add(intro.Value); introList.Add(intro.Value);
} }
@ -215,7 +215,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
// Serialize credits // Serialize credits
introList.Clear(); introList.Clear();
foreach (var intro in Plugin.Instance!.Credits) foreach (var intro in Instance.Credits)
{ {
introList.Add(intro.Value); introList.Add(intro.Value);
} }
@ -238,7 +238,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
foreach (var intro in introList) foreach (var intro in introList)
{ {
Plugin.Instance!.Intros[intro.EpisodeId] = intro; Instance!.Intros[intro.EpisodeId] = intro;
} }
} }
@ -250,7 +250,7 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
foreach (var credit in creditList) foreach (var credit in creditList)
{ {
Plugin.Instance!.Credits[credit.EpisodeId] = credit; Instance!.Credits[credit.EpisodeId] = credit;
} }
} }
} }
@ -340,15 +340,15 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
{ {
if (mode == AnalysisMode.Introduction) if (mode == AnalysisMode.Introduction)
{ {
Plugin.Instance!.Intros[intro.Key] = intro.Value; Instance!.Intros[intro.Key] = intro.Value;
} }
else if (mode == AnalysisMode.Credits) else if (mode == AnalysisMode.Credits)
{ {
Plugin.Instance!.Credits[intro.Key] = intro.Value; Instance!.Credits[intro.Key] = intro.Value;
} }
} }
Plugin.Instance!.SaveTimestamps(); Instance!.SaveTimestamps();
} }
} }