Switching to const.

This commit is contained in:
Dessalines 2023-05-21 22:56:35 -04:00
parent 3307940dbe
commit e19c60e341

View file

@ -1289,8 +1289,8 @@ export class LemmyHttp {
private async checkandThrowError(response: Response) {
if (!response.ok) {
let errJson = await response.json();
let errString: string = errJson["error"] ?? response.statusText;
const errJson = await response.json();
const errString: string = errJson["error"] ?? response.statusText;
throw new Error(errString);
}
}