From da67a885357540760fcbaec9b76589d3522f81f7 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Wed, 22 Jul 2020 14:59:03 -0500 Subject: [PATCH] fix fun else --- lib/linter.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index 7346b0ec..e080cfeb 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -954,14 +954,12 @@ Footer() { # Create status API for Failed language # ######################################### CallStatusAPI "${LANGUAGE}" "error" - else + ###################################### + # Check if we validated the langauge # + ###################################### + elif [ "${!ERROR_COUNTER}" -eq 0 ] && [[ "${UNIQUE_LINTED_ARRAY[*]}" =~ ${LANGUAGE} ]]; then # No errors found when linting the language - ###################################### - # Check if we validated the langauge # - ###################################### - if [[ "${UNIQUE_LINTED_ARRAY[*]}" =~ ${LANGUAGE} ]]; then - CallStatusAPI "${LANGUAGE}" "success" - fi + CallStatusAPI "${LANGUAGE}" "success" fi done