From ac747109e2ead16d749f46ae6ecde36ecd6cfaed Mon Sep 17 00:00:00 2001 From: "Miguel A. Calles, MBA" <44813512+miguel-a-calles-mba@users.noreply.github.com> Date: Thu, 31 Oct 2019 15:35:06 -0700 Subject: [PATCH] Update Variables.js --- lib/classes/Variables.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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);