summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-12-16 18:33:11 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-12-26 14:54:05 -0500
commit4d54ab7865414ed9d9b2afa66dca081186323f42 (patch)
tree0ed37eee0fe8c0e7675d6be831ce12cbc21dc24f
parentd0988f8073c02c32888bfc353846b6423a3e183c (diff)
downloadbuildstream-4d54ab7865414ed9d9b2afa66dca081186323f42.tar.gz
_frontend/complete.py: Fixing new (simplifiable-if-expression) linter error
-rw-r--r--buildstream/_frontend/complete.py2
1 files changed, 1 insertions, 1 deletions
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):