simplify isNotNull function

This commit is contained in:
Mystikfluu 2022-11-19 17:31:26 +01:00
parent ae8cf5e10e
commit d84410496e

View File

@ -2,7 +2,7 @@ export const setup = function (router, con, server) {
const PIDS = {}; //[pid]: true/"already_used" const PIDS = {}; //[pid]: true/"already_used"
function isNotNull(a) { function isNotNull(a) {
return typeof a !== "null" && typeof a !== "undefined" && a !== null && a !== undefined return typeof a !== "undefined" && a !== null
} }
function createPID(){ function createPID(){