From 194c61c740c3de39f5e009d9d477a3d13f7314cb Mon Sep 17 00:00:00 2001 From: Mario Doiron <5252025+doiron@users.noreply.github.com> Date: Mon, 15 May 2023 15:04:16 -0700 Subject: [PATCH] chore: correcting function syntax to match the code base, as per PR feedback --- lib/clients/smapi-client/smapiApiClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clients/smapi-client/smapiApiClient.ts b/lib/clients/smapi-client/smapiApiClient.ts index 201c4547..7591fc27 100644 --- a/lib/clients/smapi-client/smapiApiClient.ts +++ b/lib/clients/smapi-client/smapiApiClient.ts @@ -67,7 +67,7 @@ export class SmapiApiClient implements ApiClient { private convertUrlEncodedToJson(urlEncoded: string | undefined): {[key: string]: string} { var result: {[key: string]: string} = {}; - urlEncoded?.split('&').forEach(function(entry) { + urlEncoded?.split('&').forEach((entry) => { const keyValueSplit = entry.split('='); if (keyValueSplit && keyValueSplit.length > 1) { result[keyValueSplit[0]] = decodeURIComponent(keyValueSplit[1] || '');