mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-06-05 21:15:09 +00:00
config_common.py: remove unnecessary if statements
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user