From 15d3f487515b16321ab49eae47c127fc056e1fa8 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 16 Nov 2017 22:13:34 +0100 Subject: [PATCH] Code cleanup --- ArchiSteamFarm/Utilities.cs | 8 ++++---- ArchiSteamFarm/rootDescriptor.xml | 21 +++++++++++---------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/ArchiSteamFarm/Utilities.cs b/ArchiSteamFarm/Utilities.cs index a56d39d90..554047b00 100644 --- a/ArchiSteamFarm/Utilities.cs +++ b/ArchiSteamFarm/Utilities.cs @@ -163,6 +163,10 @@ namespace ArchiSteamFarm { Task.Factory.StartNew(function, options).Forget(); } + internal static IEnumerable ToEnumerable(this T item) { + yield return item; + } + internal static string ToHumanReadable(this TimeSpan timeSpan) => timeSpan.Humanize(3, maxUnit: TimeUnit.Year); private static string[] GetArgs(string[] args, byte argsToSkip = 1) { @@ -181,10 +185,6 @@ namespace ArchiSteamFarm { return result; } - internal static IEnumerable ToEnumerable(this T item) { - yield return item; - } - private sealed class ReadOnlyCollectionAdapter : IReadOnlyCollection { public int Count => Source.Count; diff --git a/ArchiSteamFarm/rootDescriptor.xml b/ArchiSteamFarm/rootDescriptor.xml index 9ecca4c41..f26dff02f 100644 --- a/ArchiSteamFarm/rootDescriptor.xml +++ b/ArchiSteamFarm/rootDescriptor.xml @@ -1,11 +1,12 @@ - - - - - + - - - - - + + + + + + + + + + \ No newline at end of file