Commit a54cd3b8 by Anatoly Ivanov Committed by Alexander Popov

get_option_state function now looks a lot prettier using dict.get() method

parent 99604da3
...@@ -234,7 +234,7 @@ def print_check_results(): ...@@ -234,7 +234,7 @@ def print_check_results():
def get_option_state(options, name): def get_option_state(options, name):
return options[name] if name in options else None return options.get(name, None)
def perform_checks(parsed_options): def perform_checks(parsed_options):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment