From 69f6bca0dfc9e186009728090acc00bb95224237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20F=C3=BCrni=C3=9F?= Date: Sun, 13 Mar 2022 18:11:21 +0100 Subject: [PATCH] Fix typo --- Jellyfin.Plugin.AniDB/Providers/equals_check.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jellyfin.Plugin.AniDB/Providers/equals_check.cs b/Jellyfin.Plugin.AniDB/Providers/equals_check.cs index 70fc47e..b924285 100644 --- a/Jellyfin.Plugin.AniDB/Providers/equals_check.cs +++ b/Jellyfin.Plugin.AniDB/Providers/equals_check.cs @@ -22,21 +22,21 @@ namespace Jellyfin.Plugin.AniDB.Providers /// Cut p(%) away from the string /// /// - /// + /// /// /// - public static string ShortenString(string input, int minLenght = 0, int p = 50) + public static string ShortenString(string input, int minLength = 0, int p = 50) { - if (input.Length <= minLenght) + if (input.Length <= minLength) { return input; } int newLength = (int)((float)input.Length - (((float)input.Length / 100f) * (float)p)); - if (newLength < minLenght) + if (newLength < minLength) { - newLength = minLenght; + newLength = minLength; } return input.Substring(0, newLength);