[Patchew-devel] [PATCH 02/12] testing: unify two ifs with the same condition

Paolo Bonzini posted 12 patches 6 years, 11 months ago
[Patchew-devel] [PATCH 02/12] testing: unify two ifs with the same condition
Posted by Paolo Bonzini 6 years, 11 months ago
---
 mods/testing.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/mods/testing.py b/mods/testing.py
index cafe9a2..a791493 100644
--- a/mods/testing.py
+++ b/mods/testing.py
@@ -201,7 +201,6 @@ class TestingModule(PatchewModule):
         if all_tests.issubset(done_tests):
             obj.set_property("testing.done", True)
             obj.set_property("testing.ready", None)
-        if all_tests.issubset(done_tests):
             obj.set_property("testing.tested-head", head)
         emit_event("TestingReport", tester=tester, user=user.username,
                     obj=obj, passed=passed, test=test, log=log, log_url=log_url,
-- 
2.17.0


_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel