Skip to content

Commit

Permalink
Make linter happy: F811 redefinition of unused 'checkTargetFilter'.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Aug 17, 2023
1 parent c316fc9 commit a45e1f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/zc/relation/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,11 +867,11 @@ def checkFilter(relchain, query):
else:
checkFilter = None
targetCache = {}
checkTargetFilter = None
if targetQuery:
targetData = self._relData(targetQuery)
if not targetData:
relData = () # shortcut
checkTargetFilter = None
else:
if targetFilter is not None:
def checkTargetFilter(relchain, query):
Expand All @@ -883,6 +883,8 @@ def checkTargetFilter(relchain, query):
elif targetFilter is not None:
def checkTargetFilter(relchain, query):
return targetFilter(relchain, query, self, targetCache)
else:
checkTargetFilter = None
return (query, relData, maxDepth, checkFilter, checkTargetFilter,
getQueries)

Expand Down

0 comments on commit a45e1f0

Please sign in to comment.