From 4d54ab7865414ed9d9b2afa66dca081186323f42 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sun, 16 Dec 2018 18:33:11 +0900 Subject: _frontend/complete.py: Fixing new (simplifiable-if-expression) linter error --- buildstream/_frontend/complete.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildstream/_frontend/complete.py b/buildstream/_frontend/complete.py index d7b7d5b40..1dbdaadb1 100644 --- a/buildstream/_frontend/complete.py +++ b/buildstream/_frontend/complete.py @@ -203,7 +203,7 @@ def is_incomplete_option(all_args, cmd_param): if start_of_option(arg_str): last_option = arg_str - return True if last_option and last_option in cmd_param.opts else False + return bool(last_option and last_option in cmd_param.opts) def is_incomplete_argument(current_params, cmd_param): -- cgit v1.2.1