Remove unneeded condition

This commit is contained in:
luoliyan 2017-02-22 19:31:31 +09:30
parent dee0fe2880
commit 5b43222f52

View File

@ -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