diff --git a/components/app.js b/components/app.js index d6882fb..7c3a95f 100644 --- a/components/app.js +++ b/components/app.js @@ -55,7 +55,7 @@ function isProduction() { // NODE_ENV is set by the Parcel build system try { return process.env.NODE_ENV === "production"; - } catch (err) { + } catch (_err) { return false; } } @@ -1960,7 +1960,7 @@ export default class App extends Component { handleOpenSettingsClick() { let showProtocolHandler = false; - for (let [id, client] of this.clients) { + for (let [_id, client] of this.clients) { if (client.caps.enabled.has("soju.im/bouncer-networks")) { showProtocolHandler = true; break; diff --git a/lib/irc.js b/lib/irc.js index 36ee09c..2d8836c 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -272,7 +272,7 @@ export function parseTargetPrefix(s, allowedPrefixes = STD_MEMBERSHIPS) { const alphaNum = (() => { try { return new RegExp(/^[\p{L}0-9]$/, "u"); - } catch (e) { + } catch (_e) { return new RegExp(/^[a-zA-Z0-9]$/, "u"); } })(); diff --git a/state.js b/state.js index 8786299..8047dc7 100644 --- a/state.js +++ b/state.js @@ -486,7 +486,7 @@ export const State = { channel = msg.params[0]; if (client.isMyNick(msg.prefix.name)) { - let [id, update] = State.createBuffer(state, channel, serverID, client); + let [_id, update] = State.createBuffer(state, channel, serverID, client); state = { ...state, ...update }; }