Fix rubocop offenses

This commit is contained in:
Sebastian Serth
2023-01-02 10:06:00 +01:00
parent 1967cc54fd
commit 922ba5df4e
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class PyLintAdapter < TestingFrameworkAdapter
else
captures = regex_match.map(&:to_f)
count = captures.second
passed = captures.first >= 0 ? captures.first : 0
passed = [captures.first, 0].max
failed = count - passed
end