From adfe1224db359e7bad561ea53f57d27f6cb86e1e Mon Sep 17 00:00:00 2001 From: checktheroads Date: Mon, 17 Jun 2019 01:38:55 -0700 Subject: [PATCH] removed redundant pylint checking logic --- tests/check_code.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/check_code.sh b/tests/check_code.sh index d05db93..b2b42a6 100755 --- a/tests/check_code.sh +++ b/tests/check_code.sh @@ -1,4 +1,4 @@ -#!/bin/sh + #!/bin/sh setup_git() { git config --global user.email "travis@travis-ci.org" @@ -16,13 +16,10 @@ check_format() { check_pylint() { PYLINT_SCORE=$(python3 manage.py pylint-badge --integer-only True) echo "Pylint score: $PYLINT_SCORE" - if [ "$PYLINT_SCORE" == "10.00" ] - then - git checkout origin/master - git add pylint.svg - git commit --message "Pylint Badge - travis #$TRAVIS_BUILD_NUMBER" - echo "Completed Pylint Check & Badge Creation" - fi + git checkout origin/master + git add pylint.svg + git commit --message "Pylint Badge - travis #$TRAVIS_BUILD_NUMBER" + echo "Completed Pylint Check & Badge Creation" } setup_git