2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00

Drop useless code in test-regex_matches.py

No need to assign a variable to itsself, not even conditionally.
This commit is contained in:
Christian Boltz 2024-12-02 21:33:34 +01:00
parent 93c7035148
commit ce0cfccfd7
No known key found for this signature in database
GPG Key ID: C6A682EA63C82F1C

View File

@ -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))