mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-01 14:27:22 +00:00
config_common.py: remove unnecessary if statements
Signed-off-by: Valerio Setti <[email protected]>
This commit is contained in:
@@ -435,12 +435,10 @@ class ConfigTool(metaclass=ABCMeta):
|
|||||||
return 0 if args.symbol in config else 1
|
return 0 if args.symbol in config else 1
|
||||||
elif args.command == 'get-all':
|
elif args.command == 'get-all':
|
||||||
match_list = config.get_matching(args.regexs, False)
|
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':
|
elif args.command == 'get-all-enabled':
|
||||||
match_list = config.get_matching(args.regexs, True)
|
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':
|
elif args.command == 'set':
|
||||||
if not args.force and args.symbol not in config.settings:
|
if not args.force and args.symbol not in config.settings:
|
||||||
sys.stderr.write(
|
sys.stderr.write(
|
||||||
|
|||||||
Reference in New Issue
Block a user