chore: rename loop var to reflect list item type (#506)

This commit is contained in:
Robert Kaussow 2022-12-12 09:15:05 +01:00 committed by GitHub
parent b5bae4d6d9
commit 79d1738322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ class CheckFilterSeparation(StandardBase):
item = re.sub(r"\(.+\)", "(dummy)", item) item = re.sub(r"\(.+\)", "(dummy)", item)
matches.append((i, item)) matches.append((i, item))
for i, line in matches: for i, item in matches:
if filters.findall(line): if filters.findall(item):
errors.append(self.Error(i, self.helptext)) errors.append(self.Error(i, self.helptext))
return self.Result(candidate.path, errors) return self.Result(candidate.path, errors)