diff options
author | MinusGix <MinusGix@gmail.com> | 2020-02-18 20:57:20 +0100 |
---|---|---|
committer | MinusGix <MinusGix@gmail.com> | 2020-02-18 20:57:20 +0100 |
commit | a1c0015fe2b5ac253a6c57650000329d8e27d460 (patch) | |
tree | fa3066af4644dbac8bd31d8c21d6f235a716dce3 /server/src | |
parent | Add 'to' parameter to invite, specifies channel (diff) | |
download | hackchat-a1c0015fe2b5ac253a6c57650000329d8e27d460.tar.gz hackchat-a1c0015fe2b5ac253a6c57650000329d8e27d460.zip |
Fix usage of double-equals-comparison to triple-equals
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/commands/core/invite.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/commands/core/invite.js b/server/src/commands/core/invite.js index 62c6051..b594586 100644 --- a/server/src/commands/core/invite.js +++ b/server/src/commands/core/invite.js @@ -26,7 +26,7 @@ export async function run(core, server, socket, data) { } let channel; - if (typeof data.to == 'string') { + if (typeof data.to === 'string') { channel = data.to; } else { channel = Math.random().toString(36).substr(2, 8); |