diff --git a/lib/classes/Variables.js b/lib/classes/Variables.js index f42bd4cda..469aa79bd 100644 --- a/lib/classes/Variables.js +++ b/lib/classes/Variables.js @@ -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);