mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 03:22:39 +01:00
tiny operator simplification
This commit is contained in:
parent
174824c570
commit
3661f261b6
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ class Item(object):
|
|||
|
||||
if key in ITEM_KEYS:
|
||||
# If the value changed, mark the field as dirty.
|
||||
if (not (key in self.record)) or (self.record[key] != value):
|
||||
if (key not in self.record) or (self.record[key] != value):
|
||||
self.record[key] = value
|
||||
self.dirty[key] = True
|
||||
if key in ITEM_KEYS_WRITABLE:
|
||||
|
|
|
|||
Loading…
Reference in a new issue