Cleanup: use set.discard instead of a __contains__ check before remove()

This commit is contained in:
Campbell Barton
2023-07-02 19:38:26 +10:00
parent f7d6b7973a
commit 1c104b16dd
2 changed files with 4 additions and 6 deletions

View File

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