lib/cc/presenters/pull_requests_presenter.rb in codeclimate-services-1.5.0 vs lib/cc/presenters/pull_requests_presenter.rb in codeclimate-services-1.5.1

- old
+ new

@@ -28,12 +28,12 @@ end def coverage_message message = "#{formatted_percent(@covered_percent)}% test coverage" - if @covered_percent_delta.positive? + if @covered_percent_delta > 0 message += " (+#{formatted_percent(@covered_percent_delta)}%)" - elsif @covered_percent_delta.negative? + elsif @covered_percent_delta < 0 message += " (#{formatted_percent(@covered_percent_delta)}%)" end message end