Skip to content

Commit

Permalink
Fix: Remove unnecessary comparison with True
Browse files Browse the repository at this point in the history
Simplify the deleted note check in the `show_quick_panel` function by directly using the `deleted` flag without comparing it to `True`. This improves readability and avoids redundant logic.
  • Loading branch information
RedAtman committed Aug 3, 2024
1 parent 000508a commit 02cfb26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def show_quick_panel(first_sync: bool = False):
for note in Note.tree.iter(reverse=True):
if not isinstance(note, Note):
raise Exception("note is not a Note: %s" % type(note))
if note.d.deleted == True:
if note.d.deleted:
continue
list__modificationDate.append(note.d.modificationDate)
list__title.append(note.title)
Expand Down

0 comments on commit 02cfb26

Please sign in to comment.