config_common.py: remove unnecessary if statements

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti
2024-09-26 13:28:02 +02:00
parent 40a28bd2af
commit 6b04996bda
+2 -4
View File
@@ -435,12 +435,10 @@ class ConfigTool(metaclass=ABCMeta):
return 0 if args.symbol in config else 1
elif args.command == 'get-all':
match_list = config.get_matching(args.regexs, False)
if match_list is not None:
sys.stdout.write("\n".join(match_list))
sys.stdout.write("\n".join(match_list))
elif args.command == 'get-all-enabled':
match_list = config.get_matching(args.regexs, True)
if match_list is not None:
sys.stdout.write("\n".join(match_list))
sys.stdout.write("\n".join(match_list))
elif args.command == 'set':
if not args.force and args.symbol not in config.settings:
sys.stderr.write(