eslint: enable no-implicit-coercion

This commit is contained in:
Simon Ser 2024-11-16 12:17:23 +01:00
parent 8ff1cd8317
commit 9c2beac7dd
4 changed files with 4 additions and 3 deletions

View file

@ -634,7 +634,7 @@ export const State = {
return updateUser(msg.prefix.name, { account });
case "AWAY":
let awayMessage = msg.params[0];
return updateUser(msg.prefix.name, { away: !!awayMessage });
return updateUser(msg.prefix.name, { away: Boolean(awayMessage) });
case "TOPIC":
channel = msg.params[0];
topic = msg.params[1];