]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/audit_log: Remove unneeded len() call
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 23 May 2023 23:11:01 +0000 (11:11 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 29 May 2023 22:32:28 +0000 (22:32 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/audit_log_base.py

index 8671f72e7b52ecbab31d4efcd2b39560e326da38..9e83e95902b32576cc68ed06489866dc352de93b 100644 (file)
@@ -176,7 +176,7 @@ class AuditLogTestBase(samba.tests.TestCase):
     # Discard any previously queued messages.
     def discardMessages(self):
         self.msg_ctx.loop_once(0.001)
-        while (len(self.context["messages"]) or
+        while (self.context["messages"] or
                self.context["txnMessage"] is not None):
 
             self.context["messages"] = []