Skip to content

Commit

Permalink
Fix usage of double-equals-comparison to triple-equals
Browse files Browse the repository at this point in the history
  • Loading branch information
MinusGix committed Feb 18, 2020
1 parent d30f829 commit a1c0015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/commands/core/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a1c0015

Please sign in to comment.