Switching to const.
This commit is contained in:
parent
3307940dbe
commit
e19c60e341
1 changed files with 2 additions and 2 deletions
|
@ -1289,8 +1289,8 @@ export class LemmyHttp {
|
||||||
|
|
||||||
private async checkandThrowError(response: Response) {
|
private async checkandThrowError(response: Response) {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
let errJson = await response.json();
|
const errJson = await response.json();
|
||||||
let errString: string = errJson["error"] ?? response.statusText;
|
const errString: string = errJson["error"] ?? response.statusText;
|
||||||
throw new Error(errString);
|
throw new Error(errString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue