Skip to content

Commit 5a5c098

Browse files
tylerpayneCopilot
andauthored
Update src/mcp_interviewer/reports/interviewer/constraint_violations.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b09960d commit 5a5c098

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mcp_interviewer/reports/interviewer/constraint_violations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _build(self):
4848
warnings += 1
4949
constraint_to_violations[type(violation.constraint)].append(violation)
5050

51-
passes = len([v for v in constraint_to_violations.values() if not v])
51+
passes = sum(1 for v in constraint_to_violations.values() if not v)
5252

5353
self.add_table_header(["❌ Errors", "⚠️ Warnings", "✅ Passes"])
5454
self.add_table_row(list(map(str, (errors, warnings, passes))))

0 commit comments

Comments
 (0)