]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Lint/AmbiguousOperator in lib/redmine/scm/adapters/mercuri...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 12 Sep 2019 15:08:21 +0000 (15:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 12 Sep 2019 15:08:21 +0000 (15:08 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18456 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
lib/redmine/scm/adapters/mercurial_adapter.rb

index a2d77a5476253493a60d57a70ea4a9aab082a423..f1c3a2773bf72b7c612ace5cccd3e5027304a13b 100644 (file)
@@ -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'
 
index ea44616979d138e505c82a1b7ef3f6b5c25a0911..fb78b05d11ae0e91bf52cfa3a70a4a5bfb97648b 100644 (file)
@@ -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