Merge comparisons with 'in'

This commit is contained in:
Jochen Sprickerhof 2022-09-05 17:14:51 +02:00
parent f4739ef3c0
commit cf0100cf11
No known key found for this signature in database
GPG key ID: 5BFFDCC258E69433
6 changed files with 19 additions and 17 deletions

View file

@ -191,7 +191,7 @@ def check_tags(app, pattern):
root_dir = build_dir / subdir
paths = common.manifest_paths(root_dir, last_build.gradle)
version, vercode, _package = common.parse_androidmanifests(paths, app)
if version == 'Unknown' or version == 'Ignore':
if version in ('Unknown', 'Ignore'):
version = tag
if vercode:
logging.debug("Manifest exists in subdir '{0}'. Found version {1} ({2})"