Simplify the logic used when updating the qacontact

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-11-20 09:45:02 +01:00
parent b002898f2b
commit 76e74fb6a4

View file

@ -260,8 +260,8 @@ class BugzillaProxy:
if description and product[pkgKey]['description'] != description:
data['description'] = description
if product[pkgKey]['initialqacontact'] != qacontact and (
qacontact or product[pkgKey]['initialqacontact']):
if qacontact and product[pkgKey]['initialqacontact'] != qacontact:
data['initialqacontact'] = qacontact
if len(product[pkgKey]['initialcclist']) != len(initialCCList):