From e19c60e341870482f976ee7d8e82c99504556792 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 21 May 2023 22:56:35 -0400 Subject: [PATCH] Switching to const. --- src/http.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http.ts b/src/http.ts index 4ee38cc..d9cfb58 100644 --- a/src/http.ts +++ b/src/http.ts @@ -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); } }