diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-12-16 18:33:11 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-12-26 14:54:05 -0500 |
commit | 4d54ab7865414ed9d9b2afa66dca081186323f42 (patch) | |
tree | 0ed37eee0fe8c0e7675d6be831ce12cbc21dc24f | |
parent | d0988f8073c02c32888bfc353846b6423a3e183c (diff) | |
download | buildstream-4d54ab7865414ed9d9b2afa66dca081186323f42.tar.gz |
_frontend/complete.py: Fixing new (simplifiable-if-expression) linter error
-rw-r--r-- | buildstream/_frontend/complete.py | 2 |
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): |