From e22d03a7d4069cd018b19ea233a9c88af091560f Mon Sep 17 00:00:00 2001 From: bctiemann Date: Tue, 17 Dec 2024 14:44:41 -0500 Subject: [PATCH] Preferable falsy syntax Co-authored-by: Jeremy Stretch --- netbox/dcim/svg/cables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/svg/cables.py b/netbox/dcim/svg/cables.py index 4de30f5cb..dd6e82c9b 100644 --- a/netbox/dcim/svg/cables.py +++ b/netbox/dcim/svg/cables.py @@ -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