Missed something in previous commit

This commit is contained in:
Zaid Abdulla committed 2019-10-28 19:08:50 -07:00
1 parent df5e4cf454
commit c07f57af1f
1 file changed
+4 -3
+4 -3
View File
@@ -26,9 +26,10 @@ const MAX_DEPTH = +config.get("MAX_DEPTH");
export function refresh(sessionContext, provision, declarations): boolean { export function refresh(sessionContext, provision, declarations): boolean {
if ( if (
provision.length !== 3 || (provision.length !== 2 || typeof provision[1] !== "string") &&
typeof provision[1] !== "string" || (provision.length !== 3 ||
typeof provision[2] !== "number" typeof provision[1] !== "string" ||
typeof provision[2] !== "number")
) )
throw new Error("Invalid arguments"); throw new Error("Invalid arguments");