From 2edbd2a5974bb01dd38b94507d56c355dbe8b4ae Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 12 Sep 2019 15:08:21 +0000 Subject: [PATCH] code cleanup: rubocop: fix Lint/AmbiguousOperator in lib/redmine/scm/adapters/mercurial_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18456 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 1 - lib/redmine/scm/adapters/mercurial_adapter.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a2d77a547..f1c3a2773 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -508,7 +508,6 @@ Lint/AmbiguousOperator: Exclude: - 'app/controllers/application_controller.rb' - 'app/helpers/application_helper.rb' - - 'lib/redmine/scm/adapters/mercurial_adapter.rb' - 'test/unit/custom_field_test.rb' - 'test/unit/member_test.rb' diff --git a/lib/redmine/scm/adapters/mercurial_adapter.rb b/lib/redmine/scm/adapters/mercurial_adapter.rb index ea4461697..fb78b05d1 100644 --- a/lib/redmine/scm/adapters/mercurial_adapter.rb +++ b/lib/redmine/scm/adapters/mercurial_adapter.rb @@ -245,7 +245,7 @@ module Redmine hg_args << '--' << CGI.escape(hgtarget(p)) end diff = [] - hg *hg_args do |io| + hg(*hg_args) do |io| io.each_line do |line| diff << line end