Skip to content

Commit

Permalink
[qa] Deleted blank line openwisp#20
Browse files Browse the repository at this point in the history
  • Loading branch information
ppabcd committed Nov 27, 2018
1 parent 2eca4bc commit 6427695
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions openwisp_utils/qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,13 @@ def _commit_check_args():

def check_commit_message():
args = _commit_check_args()

if not args.message:
raise Exception("CLI arguement `message` is required "
"but not found")
else:
short_desc = args.message.split("\n")[0]
if len(args.message.split("\n")) > 1:
long_desc = args.message.split("\n")[1:]

errors = []
# Check dot in end of the first line
if short_desc[len(short_desc.strip()) - 1].strip() == '.':
Expand Down Expand Up @@ -161,7 +159,6 @@ def _is_array(var):

def _check_word(message):
parts = message.split(' ')

return_data = []
loc = []
i = 0
Expand Down

0 comments on commit 6427695

Please sign in to comment.