mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
refactor: use list comprehension (#3308)
This commit is contained in:
parent
bb5ed4da9c
commit
e213c0a6d1
1 changed files with 1 additions and 4 deletions
|
@ -172,10 +172,7 @@ class Note(DeprecatedNamesMixin):
|
|||
return self.col.tags.in_list(tag, self.tags)
|
||||
|
||||
def remove_tag(self, tag: str) -> None:
|
||||
rem = []
|
||||
for tag_ in self.tags:
|
||||
if tag_.lower() == tag.lower():
|
||||
rem.append(tag_)
|
||||
rem = [tag_ for tag_ in self.tags if tag_.lower() == tag.lower()]
|
||||
for tag_ in rem:
|
||||
self.tags.remove(tag_)
|
||||
|
||||
|
|
Loading…
Reference in a new issue