mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Fix usage of double-equals-comparison to triple-equals
This commit is contained in:
parent
d30f82962a
commit
a1c0015fe2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user