Skip to content

Commit

Permalink
avoid using function name as variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Jan 30, 2024
1 parent b0922e4 commit b615e6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/initialization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
status_monitor = StatusMonitor()


def usb_device_exists() -> bool:
def get_usb_device_exists() -> bool:
logger.debug("Checking for USB...")
if not settings.RUNNING_TESTS and settings.USB_DEVICE is not None:
usb_devices = check_output("lsusb").decode(sys.stdout.encoding)
Expand All @@ -44,7 +44,7 @@ def set_container_unhealthy():

try:
register_component_with_status.connect(status_registration_handler)
usb_device_exists = usb_device_exists()
usb_device_exists = get_usb_device_exists()
if usb_device_exists:
action_loader = ActionLoader()
logger.debug(f"Actions ActionLoader has {len(action_loader.actions)} actions")
Expand Down

0 comments on commit b615e6c

Please sign in to comment.