mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Preferable falsy syntax
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
parent
25b5d70b6d
commit
e22d03a7d4
@ -269,7 +269,7 @@ class CableTraceSVG:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user