Skip to content

Commit

Permalink
Update plugin/core/types.py
Browse files Browse the repository at this point in the history
Co-authored-by: jwortmann <[email protected]>
  • Loading branch information
predragnikolic and jwortmann authored Jul 3, 2024
1 parent cb82086 commit 728c6ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ def matches(file_operation_filter: FileOperationFilter) -> bool:
return False
return True

filters = [matches(file_operation_filter) for file_operation_filter in file_operation_options.get('filters')]
return any(filters) if filters else True
filters = file_operation_options.get('filters')
return any(matches(_filter) for _filter in filters) if filters else True


# method -> (capability dotted path, optional registration dotted path)
Expand Down

0 comments on commit 728c6ea

Please sign in to comment.