simplify isNotNull function
This commit is contained in:
parent
ae8cf5e10e
commit
d84410496e
@ -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(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user