From 99fcbdda052940f450d397f3c3577be25c0fe52d Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Tue, 27 Aug 2024 01:49:17 +0300 Subject: lint fix --- web/share/js/login/main.js | 2 +- web/share/js/wm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js index 41ed6141..4ffa276a 100644 --- a/web/share/js/login/main.js +++ b/web/share/js/login/main.js @@ -59,7 +59,7 @@ function __login() { } else { let error = ""; if (http.status === 400) { - try { error = JSON.parse(http.responseText)["result"]["error"]; } catch (_) { /* Nah */ } + try { error = JSON.parse(http.responseText)["result"]["error"]; } catch { /* Nah */ } } if (error === "ValidatorError") { wm.error("Invalid characters in credentials").then(__tryAgain); diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 31c7dac0..11f65faa 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -165,7 +165,7 @@ function __WindowManager() { try { err = (document.execCommand("copy") ? null : "Unknown error"); - } catch (err) { // eslint-disable-line no-empty + } catch (err) { // eslint-disable-line no-unused-vars } // Remove the added textarea again: -- cgit v1.2.3