From b64eec8def10cc8c5f237602759e70634e37ca6f Mon Sep 17 00:00:00 2001 From: Archi Date: Wed, 16 Jun 2021 00:48:28 +0200 Subject: [PATCH] Misc for netf Doesn't make sense to check further if index points to the end of the string, this also handles previous check --- ArchiSteamFarm/Compatibility/StaticHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Compatibility/StaticHelpers.cs b/ArchiSteamFarm/Compatibility/StaticHelpers.cs index d2c0bd69d..7dfd433b5 100644 --- a/ArchiSteamFarm/Compatibility/StaticHelpers.cs +++ b/ArchiSteamFarm/Compatibility/StaticHelpers.cs @@ -136,7 +136,7 @@ namespace ArchiSteamFarm.Compatibility { int startIndex = 0; while (true) { - if (source.Length == 0) { + if (startIndex >= source.Length) { return source; }