Update Variables.js

This commit is contained in:
Miguel A. Calles, MBA 2019-10-31 15:35:06 -07:00 committed by GitHub
parent 4cd4536abc
commit ac747109e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);