From efb182c5c5f97507417f845b95aa2f371be86ba0 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 6 May 2021 10:44:19 +0200 Subject: [PATCH] Remove no-longer-needed workaround --- ArchiSteamFarm/Utilities.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ArchiSteamFarm/Utilities.cs b/ArchiSteamFarm/Utilities.cs index e9ddc13e1..33fc21f32 100644 --- a/ArchiSteamFarm/Utilities.cs +++ b/ArchiSteamFarm/Utilities.cs @@ -21,7 +21,6 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Linq; using System.Net; @@ -250,14 +249,7 @@ namespace ArchiSteamFarm { } [PublicAPI] - public static string ToHumanReadable(this TimeSpan timeSpan) { - try { - return timeSpan.Humanize(3, maxUnit: TimeUnit.Year, minUnit: TimeUnit.Second); - } catch (TypeInitializationException e) when (e.InnerException is CultureNotFoundException) { - // TODO: Workaround for https://github.com/Humanizr/Humanizer/issues/1059 - return timeSpan.ToString(); - } - } + public static string ToHumanReadable(this TimeSpan timeSpan) => timeSpan.Humanize(3, maxUnit: TimeUnit.Year, minUnit: TimeUnit.Second); [PublicAPI] public static Task ToLongRunningTask(this AsyncJob job) where T : CallbackMsg {