Remove unneeded condition
This commit is contained in:
parent
dee0fe2880
commit
5b43222f52
@ -142,7 +142,7 @@ class TagManager:
|
|||||||
"Delete tags if they exist."
|
"Delete tags if they exist."
|
||||||
def wildcard(pat, str):
|
def wildcard(pat, str):
|
||||||
pat = re.escape(pat).replace('\\*', '.*')
|
pat = re.escape(pat).replace('\\*', '.*')
|
||||||
return '*' in pat and re.search(pat, str, re.IGNORECASE)
|
return re.search(pat, str, re.IGNORECASE)
|
||||||
currentTags = self.split(tags)
|
currentTags = self.split(tags)
|
||||||
for tag in self.split(deltags):
|
for tag in self.split(deltags):
|
||||||
# find tags, ignoring case
|
# find tags, ignoring case
|
||||||
|
Loading…
Reference in New Issue
Block a user