Skip to content

Commit bde16dd

Browse files
committed
refactor
1 parent cce94e4 commit bde16dd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

netbox_acls/forms/models.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -513,14 +513,14 @@ def _check_if_interface_already_has_acl_in_direction(
513513
direction=direction,
514514
).exists():
515515
return {}
516-
else:
517-
error_interface_already_assigned = (
518-
"Interfaces can only have 1 Access List assigned in each direction."
519-
)
520-
return {
521-
"direction": [error_interface_already_assigned],
522-
assigned_object_type: [error_interface_already_assigned],
523-
}
516+
517+
error_interface_already_assigned = (
518+
"Interfaces can only have 1 Access List assigned in each direction."
519+
)
520+
return {
521+
"direction": [error_interface_already_assigned],
522+
assigned_object_type: [error_interface_already_assigned],
523+
}
524524

525525
def save(self, *args, **kwargs):
526526
"""

0 commit comments

Comments
 (0)