clean up nitpicks

This commit is contained in:
ryleu
2025-10-23 00:52:19 -05:00
parent 87e3f06562
commit c4f60d6814
3 changed files with 37 additions and 43 deletions

View File

@@ -185,7 +185,7 @@ class SerialRelay(Node):
elif parts[1] not in ["core", "arm", "digit", "citadel", "broadcast"]:
malformed = True
malformed_reason = f"invalid mcu_name '{parts[1]}'"
elif parts[2].isnumeric() is False or int(parts[2]) < 0:
elif not(parts[2].isnumeric()) or int(parts[2]) < 0:
malformed = True
malformed_reason = f"command_id '{parts[2]}' is not a non-negative integer"
else: