From 50cbaa0454b988e72ffcf6cd29d8ca50d8037e7e Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sat, 30 Sep 2023 17:49:00 -0600 Subject: [PATCH] Remove debug spew and undefined variable --- gofmt.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gofmt.sh b/gofmt.sh index 1fb55ba..92a288d 100755 --- a/gofmt.sh +++ b/gofmt.sh @@ -13,10 +13,7 @@ file="$1" pushd "$(dirname "$file")" 2>&1 -wrflog hello - if [[ "$WOULD_REFORMAT" = "would_reformat" ]]; then - success_retval=0 would_reformat_retval=1 syntax_error_retval=2 @@ -25,8 +22,6 @@ if [[ "$WOULD_REFORMAT" = "would_reformat" ]]; then exitval="$?" set -e -wrflog out: "$out" - if [[ "$exitval" = "$syntax_error_retval" ]]; then retval="$exitval" elif [[ "$out" = "$file" ]]; then