mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Update Variables.js
This commit is contained in:
parent
4cd4536abc
commit
ac747109e2
@ -838,11 +838,10 @@ class Variables {
|
||||
}
|
||||
// truthy or non-empty strings
|
||||
return true;
|
||||
} else {
|
||||
throw new this.serverless.classes.Error(
|
||||
'Unexpected strToBool input; expected either "true", "false", "0", or "1".'
|
||||
);
|
||||
}
|
||||
throw new this.serverless.classes.Error(
|
||||
'Unexpected strToBool input; expected either "true", "false", "0", or "1".'
|
||||
);
|
||||
}
|
||||
// Cast non-string inputs
|
||||
return Boolean(variableString);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user