mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-22 20:31:12 +00:00
Moving return to else.
This commit is contained in:
parent
c5fb4b559e
commit
c0281d32d8
1 changed files with 2 additions and 1 deletions
|
@ -1316,8 +1316,9 @@ export class LemmyHttp {
|
|||
|
||||
if (!response.ok) {
|
||||
throw json["error"] ?? response.statusText;
|
||||
} else {
|
||||
return json;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue