Missed something in previous commit
This commit is contained in:
1 parent
df5e4cf454
commit
c07f57af1f
1 file changed
+4
-3
@@ -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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user