Moving return to else.

This commit is contained in:
Dessalines 2023-05-29 19:08:47 -04:00
parent c5fb4b559e
commit c0281d32d8

View file

@ -1316,9 +1316,10 @@ export class LemmyHttp {
if (!response.ok) { if (!response.ok) {
throw json["error"] ?? response.statusText; throw json["error"] ?? response.statusText;
} } else {
return json; return json;
} }
}
} }
function encodeGetParams<BodyType extends object>(p: BodyType): string { function encodeGetParams<BodyType extends object>(p: BodyType): string {