From 489e39033d938625db0f6dcb5f7fa83a9dbded0c Mon Sep 17 00:00:00 2001 From: Kilian von Pflugk Date: Sat, 20 Apr 2024 12:22:34 +0200 Subject: [PATCH] remove redundant qualifier --- .../Entrypoint.cs | 4 ++-- ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs index 311e69c..6ca1ac1 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Entrypoint.cs @@ -209,7 +209,7 @@ public class Entrypoint : IServerEntryPoint } // Unless user initiated, this is likely an overlap - if (Entrypoint.AutomaticTaskState == TaskState.Running) + if (AutomaticTaskState == TaskState.Running) { return; } @@ -222,7 +222,7 @@ public class Entrypoint : IServerEntryPoint /// private void StartTimer() { - if (Entrypoint.AutomaticTaskState == TaskState.Running) + if (AutomaticTaskState == TaskState.Running) { _analyzeAgain = true; // Items added during a scan will be included later. } diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs index 2b297da..4d073ab 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs @@ -205,7 +205,7 @@ public class Plugin : BasePlugin, IHasWebPages var introList = new List(); // Serialize intros - foreach (var intro in Plugin.Instance!.Intros) + foreach (var intro in Instance!.Intros) { introList.Add(intro.Value); } @@ -215,7 +215,7 @@ public class Plugin : BasePlugin, IHasWebPages // Serialize credits introList.Clear(); - foreach (var intro in Plugin.Instance!.Credits) + foreach (var intro in Instance.Credits) { introList.Add(intro.Value); } @@ -238,7 +238,7 @@ public class Plugin : BasePlugin, IHasWebPages foreach (var intro in introList) { - Plugin.Instance!.Intros[intro.EpisodeId] = intro; + Instance!.Intros[intro.EpisodeId] = intro; } } @@ -250,7 +250,7 @@ public class Plugin : BasePlugin, IHasWebPages foreach (var credit in creditList) { - Plugin.Instance!.Credits[credit.EpisodeId] = credit; + Instance!.Credits[credit.EpisodeId] = credit; } } } @@ -340,15 +340,15 @@ public class Plugin : BasePlugin, IHasWebPages { if (mode == AnalysisMode.Introduction) { - Plugin.Instance!.Intros[intro.Key] = intro.Value; + Instance!.Intros[intro.Key] = intro.Value; } else if (mode == AnalysisMode.Credits) { - Plugin.Instance!.Credits[intro.Key] = intro.Value; + Instance!.Credits[intro.Key] = intro.Value; } } - Plugin.Instance!.SaveTimestamps(); + Instance!.SaveTimestamps(); } }