From 12d98c46cbb8b9dda8157df1ec7b11d1fce643a4 Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 11 Nov 2024 17:53:47 +0100 Subject: [PATCH] chore: fix warnings. --- Jellyfin.Plugin.SmartPlaylist/Plugin.cs | 2 -- Tests/Tests.cs | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Jellyfin.Plugin.SmartPlaylist/Plugin.cs b/Jellyfin.Plugin.SmartPlaylist/Plugin.cs index c51caf5..bc7656c 100644 --- a/Jellyfin.Plugin.SmartPlaylist/Plugin.cs +++ b/Jellyfin.Plugin.SmartPlaylist/Plugin.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Globalization; using MediaBrowser.Common.Configuration; using MediaBrowser.Common.Plugins; diff --git a/Tests/Tests.cs b/Tests/Tests.cs index 439d934..3413bf3 100644 --- a/Tests/Tests.cs +++ b/Tests/Tests.cs @@ -199,11 +199,11 @@ namespace Tests Expression r; e.environment.Set("o", new Lisp_Object(new O(5, false))); r = e.eval("""(haskeys o "i" "b")"""); - Assert.Equal(((Lisp_Boolean)r).Value(), true); + Assert.True(((Lisp_Boolean)r).Value()); r = e.eval("""(getitems o "i" "b")"""); - Assert.Equal(string.Format("{0}", r), "(5 nil)"); + Assert.Equal("(5 nil)", string.Format("{0}", r)); r = e.eval("""(invoke o "I" nil)"""); - Assert.Equal(string.Format("{0}", r), "5"); + Assert.Equal("5", string.Format("{0}", r)); } [Fact]