Skip to content

Commit

Permalink
adding short circuit condition
Browse files Browse the repository at this point in the history
  • Loading branch information
LordBrom committed Aug 24, 2021
1 parent 927904b commit d845e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hightlight_duplicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def is_candidate(string):
'''
minLineLength = getMinLineLength()
ignoreList = getIgnoreList()
if string.strip().lower() in ignoreList:
if len(ignoreList) > 0 and string.strip().lower() in ignoreList:
return False
return len(string.strip('{}()[]/')) >= minLineLength

Expand Down

0 comments on commit d845e08

Please sign in to comment.