From 69a28867663a85b84380b41d02ba521e2cd235c0 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Sun, 19 May 2024 13:46:10 +1000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Joel Challis --- lib/python/qmk/commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index 93f008778a3e..009622712fc7 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py @@ -54,9 +54,7 @@ def parse_configurator_json(configurator_file): cli.log.error(f'Invalid JSON keymap: {configurator_file} : {e.message}') exit(1) - keyboard = None - if 'keyboard' in user_keymap: - keyboard = user_keymap['keyboard'] + keyboard = user_keymap.get('keyboard', None) aliases = keyboard_alias_definitions() while keyboard in aliases: