From 17c8d15b14f6c3ecc98e1466e9148cf100cc12c6 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Fri, 10 Feb 2017 15:26:23 -0500 Subject: Enable `Lint/EmptyWhen` cop and correct offense --- lib/gitlab/diff/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/gitlab/diff/parser.rb b/lib/gitlab/diff/parser.rb index 59a2367b65d..89320f5d9dc 100644 --- a/lib/gitlab/diff/parser.rb +++ b/lib/gitlab/diff/parser.rb @@ -45,7 +45,7 @@ module Gitlab line_new += 1 when "-" line_old += 1 - when "\\" + when "\\" # rubocop:disable Lint/EmptyWhen # No increment else line_new += 1 -- cgit v1.2.1