From d84410496ec26d9557baaa336d9c7cf8189560bd Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sat, 19 Nov 2022 17:31:26 +0100 Subject: [PATCH] simplify isNotNull function --- routes/api/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/post.js b/routes/api/post.js index 6cf2ce7..c9d1818 100644 --- a/routes/api/post.js +++ b/routes/api/post.js @@ -2,7 +2,7 @@ export const setup = function (router, con, server) { const PIDS = {}; //[pid]: true/"already_used" function isNotNull(a) { - return typeof a !== "null" && typeof a !== "undefined" && a !== null && a !== undefined + return typeof a !== "undefined" && a !== null } function createPID(){