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
|
pushd "$(dirname "$file")" 2>&1
|
||||||
|
|
||||||
wrflog hello
|
|
||||||
|
|
||||||
if [[ "$WOULD_REFORMAT" = "would_reformat" ]]; then
|
if [[ "$WOULD_REFORMAT" = "would_reformat" ]]; then
|
||||||
success_retval=0
|
|
||||||
would_reformat_retval=1
|
would_reformat_retval=1
|
||||||
syntax_error_retval=2
|
syntax_error_retval=2
|
||||||
|
|
||||||
@@ -25,8 +22,6 @@ if [[ "$WOULD_REFORMAT" = "would_reformat" ]]; then
|
|||||||
exitval="$?"
|
exitval="$?"
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
wrflog out: "$out"
|
|
||||||
|
|
||||||
if [[ "$exitval" = "$syntax_error_retval" ]]; then
|
if [[ "$exitval" = "$syntax_error_retval" ]]; then
|
||||||
retval="$exitval"
|
retval="$exitval"
|
||||||
elif [[ "$out" = "$file" ]]; then
|
elif [[ "$out" = "$file" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user