Commit b8442158 authored by Maxime Orefice's avatar Maxime Orefice

Simplify existing_errors for CodequalityReportsComparer

This commit makes our existing api simpler by creating an alias
from total_count to existing_errors which are both the same method.
parent e364c8d5
......@@ -40,17 +40,15 @@ module Gitlab
end
end
def errors_count
head_report.degradations_count
end
def resolved_count
resolved_errors.size
end
def total_count
existing_errors.size + new_errors.size
head_report.degradations_count
end
alias_method :errors_count, :total_count
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment