Cleanup: use set.discard instead of a __contains__ check before remove()
This commit is contained in:
@@ -318,8 +318,7 @@ def api_changelog(args):
|
||||
props_moved.append((prop_id_old, prop_id_new))
|
||||
|
||||
# remove
|
||||
if prop_id_old in set_props_old:
|
||||
set_props_old.remove(prop_id_old)
|
||||
set_props_old.discard(prop_id_old)
|
||||
set_props_new.remove(prop_id_new)
|
||||
|
||||
# func args
|
||||
|
||||
Reference in New Issue
Block a user