Remove debug spew and undefined variable
This commit is contained in:
5
gofmt.sh
5
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
|
||||
|
||||
Reference in New Issue
Block a user