Skip to content

Commit 25b53f9

Browse files
pcraciunoiujheld
authored andcommitted
Lint
1 parent 5759a83 commit 25b53f9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

easyaudit/signals/crud_flows.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,7 @@ def m2m_changed_crud_flow( # noqa: PLR0913
9696
if action == "post_clear":
9797
changed_fields = []
9898
else:
99-
pks = (
100-
[]
101-
if pk_set is None
102-
else [format_primary_key(pk) for pk in pk_set]
103-
)
99+
pks = [] if pk_set is None else [format_primary_key(pk) for pk in pk_set]
104100
changed_fields = {get_m2m_field_name(model, instance): pks}
105101
log_event(
106102
event_type,

0 commit comments

Comments
 (0)