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