Run prettier

This commit is contained in:
Cavanaugh Richards 2023-06-21 17:19:30 -05:00
parent ea8cab69f4
commit 9b73693910
No known key found for this signature in database
GPG key ID: 6EDF7F29C18D7689

View file

@ -1335,7 +1335,9 @@ export class LemmyHttp {
} }
} }
function encodeGetParams<BodyType extends object>(p: BodyType = <BodyType>{}): string { function encodeGetParams<BodyType extends object>(
p: BodyType = <BodyType>{}
): string {
return Object.entries(p) return Object.entries(p)
.filter(kv => !!kv[1]) .filter(kv => !!kv[1])
.map(kv => kv.map(encodeURIComponent).join("=")) .map(kv => kv.map(encodeURIComponent).join("="))