Make shfmt happier
This commit is contained in:
@@ -46,7 +46,7 @@ elif [[ $file_type == "python" ]]; then
|
|||||||
success_retval=0
|
success_retval=0
|
||||||
would_reformat_retval=1
|
would_reformat_retval=1
|
||||||
syntax_error_retval=2
|
syntax_error_retval=2
|
||||||
elif [[ $file_type == "golang" ]] ; then
|
elif [[ $file_type == "golang" ]]; then
|
||||||
success_retval=0
|
success_retval=0
|
||||||
would_reformat_retval=1
|
would_reformat_retval=1
|
||||||
syntax_error_retval=2
|
syntax_error_retval=2
|
||||||
@@ -56,15 +56,15 @@ elif [[ $file_type == "golang" ]] ; then
|
|||||||
exitval="$?"
|
exitval="$?"
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ "$exitval" = "$syntax_error_retval" ]] ; then
|
if [[ "$exitval" = "$syntax_error_retval" ]]; then
|
||||||
retval="$exitval"
|
retval="$exitval"
|
||||||
elif [[ "$out" = "$file" ]] ; then
|
elif [[ "$out" = "$file" ]]; then
|
||||||
retval="$would_reformat_retval"
|
retval="$would_reformat_retval"
|
||||||
else
|
else
|
||||||
# success
|
# success
|
||||||
retval="$exitval"
|
retval="$exitval"
|
||||||
fi
|
fi
|
||||||
elif [[ $file_type == "dart" ]] ; then
|
elif [[ $file_type == "dart" ]]; then
|
||||||
success_retval=0
|
success_retval=0
|
||||||
would_reformat_retval=1
|
would_reformat_retval=1
|
||||||
# probably others too :(
|
# probably others too :(
|
||||||
|
|||||||
Reference in New Issue
Block a user