From 0e635d724cbe8dfda67dbaecfd17519b35fa8ed6 Mon Sep 17 00:00:00 2001 From: Kilian von Pflugk Date: Sat, 20 Apr 2024 13:04:56 +0200 Subject: [PATCH] remove unused variable --- .../Controllers/TroubleshootingController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/TroubleshootingController.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/TroubleshootingController.cs index 93be7e1..630a65f 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/TroubleshootingController.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/TroubleshootingController.cs @@ -2,6 +2,7 @@ using System; using System.Net.Mime; using System.Text; using MediaBrowser.Common; +using MediaBrowser.Common.Configuration; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; @@ -42,7 +43,8 @@ public class TroubleshootingController : ControllerBase [Produces(MediaTypeNames.Text.Plain)] public ActionResult GetSupportBundle() { - var config = Plugin.Instance!.Configuration; + ArgumentNullException.ThrowIfNull(Plugin.Instance); + var bundle = new StringBuilder(); bundle.Append("* Jellyfin version: ");