Skip to content

Commit

Permalink
Preferable falsy syntax
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Stretch <[email protected]>
  • Loading branch information
bctiemann and jeremystretch authored Dec 17, 2024
1 parent 25b5d70 commit e22d03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/dcim/svg/cables.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def draw_far_objects(self, obj_list, terminations):
Draw the far-end objects and its terminations and return all created nodes
"""
# If an empty list is passed in, return empty results so this cable can be skipped
if len(obj_list) == 0:
if not len(obj_list):
return [], []

# Make sure elements are sorted by name for readability
Expand Down

0 comments on commit e22d03a

Please sign in to comment.