Fix usage of double-equals-comparison to triple-equals
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user