diff --git a/src/http.ts b/src/http.ts index cdc15dd..b659339 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1335,7 +1335,9 @@ export class LemmyHttp { } } -function encodeGetParams(p: BodyType = {}): string { +function encodeGetParams( + p: BodyType = {} +): string { return Object.entries(p) .filter(kv => !!kv[1]) .map(kv => kv.map(encodeURIComponent).join("="))