Merge pull request #29 from 002Hub/deepsource-fix-74783334

Replace  `==`/`!=` with `===`/`!==`
This commit is contained in:
Code002Lover
2022-09-05 09:41:10 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -379,7 +379,7 @@ function switchChannel(channelname) {
sessionStorage.setItem("lastdm", channelname);
currentChannel = channelname
if(localStorage.getItem(currentChannel+"enc_key")!=null) {
if(localStorage.getItem(currentChannel+"enc_key")!==null) {
encryption_keys = localStorage.getItem(currentChannel+"enc_key")
} else {
encryption_keys = ""
+1 -1
View File
@@ -41,7 +41,7 @@ export const setup = function (router, con, server) {
res.locals.settings = JSON.parse(result[0].User_Settings);
if (res.locals.settings == "null")
res.locals.settings = {};
if (res.locals.settings == null)
if (res.locals.settings === null)
res.locals.settings = {};
}