Skip to content

Commit

Permalink
remove unnecessary if
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed Jul 3, 2024
1 parent 728c6ea commit 93b024a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,10 @@ def matches(file_operation_filter: FileOperationFilter) -> bool:
return False
if pattern:
matches = pattern.get('matches')
if matches:
if matches == FileOperationPatternKind.File and os.path.isdir(path):
return False
if matches == FileOperationPatternKind.Folder and os.path.isfile(path):
return False
if matches == FileOperationPatternKind.File and os.path.isdir(path):
return False
if matches == FileOperationPatternKind.Folder and os.path.isfile(path):
return False
options = pattern.get('options', {})
flags = GLOBSTAR | BRACE
if options.get('ignoreCase', False):
Expand Down

0 comments on commit 93b024a

Please sign in to comment.