fix bug in should_ignore function
This commit is contained in:
parent
a97984f4b9
commit
8244e3eb81
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@ def parseArguments(argv):
|
|||
|
||||
|
||||
def should_ignore(fileName, patterns):
|
||||
if not patterns:
|
||||
patterns = []
|
||||
for pattern in patterns:
|
||||
try:
|
||||
compiled = re.compile(pattern, re.IGNORECASE)
|
||||
|
|
Loading…
Reference in a new issue