Replace ==/!= with ===/!==

This commit is contained in:
deepsource-autofix[bot] 2022-09-05 16:40:08 +00:00 committed by GitHub
parent ba325cdd63
commit 29e4d677f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -379,7 +379,7 @@ function switchChannel(channelname) {
sessionStorage.setItem("lastdm", channelname); sessionStorage.setItem("lastdm", channelname);
currentChannel = channelname currentChannel = channelname
if(localStorage.getItem(currentChannel+"enc_key")!=null) { if(localStorage.getItem(currentChannel+"enc_key")!==null) {
encryption_keys = localStorage.getItem(currentChannel+"enc_key") encryption_keys = localStorage.getItem(currentChannel+"enc_key")
} else { } else {
encryption_keys = "" encryption_keys = ""

View File

@ -41,7 +41,7 @@ export const setup = function (router, con, server) {
res.locals.settings = JSON.parse(result[0].User_Settings); res.locals.settings = JSON.parse(result[0].User_Settings);
if (res.locals.settings == "null") if (res.locals.settings == "null")
res.locals.settings = {}; res.locals.settings = {};
if (res.locals.settings == null) if (res.locals.settings === null)
res.locals.settings = {}; res.locals.settings = {};
} }