Skip to content

Commit

Permalink
chore: correcting function syntax to match the code base, as per PR f…
Browse files Browse the repository at this point in the history
…eedback
  • Loading branch information
Mario Doiron committed May 15, 2023
1 parent 5d2f46d commit 194c61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clients/smapi-client/smapiApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] || '');
Expand Down

0 comments on commit 194c61c

Please sign in to comment.