From 08d0fcdc48080b5a1752bff29496eb17addb76e4 Mon Sep 17 00:00:00 2001 From: Traxus Date: Fri, 21 Apr 2023 20:24:59 -0400 Subject: [PATCH] Signed-off-by: Traxus --- src/lib/datocms-bypass.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/datocms-bypass.ts b/src/lib/datocms-bypass.ts index 343b7a4..5845f75 100644 --- a/src/lib/datocms-bypass.ts +++ b/src/lib/datocms-bypass.ts @@ -175,11 +175,12 @@ function jsonFilePathIsValid(filePath : string) { function jsonNodeExists(jsonData : object, node : string) { - if (typeof node === 'string' || node instanceof String) { + //-----this condition is unneccessary... so THATS what typescript is for XD + //if (typeof node === 'string' || node instanceof String) { if (node in jsonData === true) { return true; } - } + //} return false; }