enh(macdefaults): Use generator instead of list

This commit is contained in:
Carlos Álvaro 2024-05-08 11:47:05 +02:00 committed by Daniel Wozniak
parent aaba6250c0
commit 7c5baf4bbe

View file

@ -100,7 +100,7 @@ def _compare_values(new, current, vtype):
if vtype == "array-add":
return _is_subarray(new, current)
if vtype == "dict-add":
return all([key in current and new[key] == current[key] for key in new.keys()])
return all(key in current and new[key] == current[key] for key in new.keys())
return new == current