File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,9 @@ PEP8_SCRIPT_REMOTE_PATH="https://raw.githubusercontent.com/jcrocholl/pep8/1.5.7/
3434curl --silent -o " $PEP8_SCRIPT_PATH " " $PEP8_SCRIPT_REMOTE_PATH "
3535curl_status=$?
3636
37- if [ $curl_status -ne 0 ]
38- then
39- echo " Failed to download pep8.py from \" $PEP8_SCRIPT_REMOTE_PATH \" ."
40- exit $curl_status
37+ if [ $curl_status -ne 0 ]; then
38+ echo " Failed to download pep8.py from \" $PEP8_SCRIPT_REMOTE_PATH \" ."
39+ exit $curl_status
4140fi
4241
4342
@@ -49,12 +48,11 @@ python $PEP8_SCRIPT_PATH ./python --exclude="cloudpickle.py" \
4948 > " $PEP8_REPORT_PATH "
5049pep8_status=${PIPESTATUS[0]} # $?
5150
52- if [ $pep8_status -ne 0 ]
53- then
54- echo " PEP 8 checks failed."
55- cat " $PEP8_REPORT_PATH "
56- else
57- echo " PEP 8 checks passed."
51+ if [ $pep8_status -ne 0 ]; then
52+ echo " PEP 8 checks failed."
53+ cat " $PEP8_REPORT_PATH "
54+ else
55+ echo " PEP 8 checks passed."
5856fi
5957
6058rm -f " $PEP8_REPORT_PATH "
You can’t perform that action at this time.
0 commit comments