From 261791dddcf949d5a9d5be4626f2e168eaf5cd4c Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 31 Jul 2024 17:54:25 -0400 Subject: [PATCH] Fixing error lint. (#324) --- src/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.ts b/src/http.ts index e51e2a2..268dffc 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1526,7 +1526,7 @@ export class LemmyHttp { try { json = await response.json(); - } catch (error) { + } catch (_) { throw new Error(response.statusText); }