From c07f57af1f976924c9105edbca6d25c5d4bea73b Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Mon, 28 Oct 2019 19:08:50 -0700 Subject: [PATCH] Missed something in previous commit --- lib/default-provisions.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/default-provisions.ts b/lib/default-provisions.ts index cf7900f..1da26dd 100644 --- a/lib/default-provisions.ts +++ b/lib/default-provisions.ts @@ -26,9 +26,10 @@ const MAX_DEPTH = +config.get("MAX_DEPTH"); export function refresh(sessionContext, provision, declarations): boolean { if ( - provision.length !== 3 || - typeof provision[1] !== "string" || - typeof provision[2] !== "number" + (provision.length !== 2 || typeof provision[1] !== "string") && + (provision.length !== 3 || + typeof provision[1] !== "string" || + typeof provision[2] !== "number") ) throw new Error("Invalid arguments");