From ce0cfccfd756d70a36cd48512a97344ab1926e7d Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 2 Dec 2024 21:33:34 +0100 Subject: [PATCH] Drop useless code in test-regex_matches.py No need to assign a variable to itsself, not even conditionally. --- utils/test/test-regex_matches.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/utils/test/test-regex_matches.py b/utils/test/test-regex_matches.py index 97120fad3..927f0ea6f 100644 --- a/utils/test/test-regex_matches.py +++ b/utils/test/test-regex_matches.py @@ -44,8 +44,6 @@ class AANamedRegexTest(AATest): for exp in expected: match = matches.group(exp) - if match: - match = match self.assertEqual(match, expected[exp], 'Group {} mismatch in rule {}'.format(exp, line))