From: Toshi MARUYAMA Date: Thu, 21 Nov 2019 10:56:24 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/AlignArguments in lib/redmine/scm/adapters/subversion_ad... X-Git-Tag: 4.2.0~1510 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a99b4e6d1579ae37a35d37d206c09d2533454433;p=redmine.git cleanup: rubocop: fix Layout/AlignArguments in lib/redmine/scm/adapters/subversion_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19129 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 960644b6a..375d60c1c 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -13,7 +13,6 @@ Layout/AlignArguments: Exclude: - 'config/application.rb' - 'lib/redmine/scm/adapters/bazaar_adapter.rb' - - 'lib/redmine/scm/adapters/subversion_adapter.rb' - 'test/functional/journals_controller_test.rb' - 'test/functional/my_controller_test.rb' - 'test/functional/roles_controller_test.rb' diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb index 07f9af48e..a395df4ae 100644 --- a/lib/redmine/scm/adapters/subversion_adapter.rb +++ b/lib/redmine/scm/adapters/subversion_adapter.rb @@ -228,12 +228,14 @@ module Redmine io.each_line do |line| next unless line =~ %r{^\s*(\d+)\s*(\S+)\s(.*)$} rev = $1 - blame.add_line($3.rstrip, - Revision.new( - :identifier => rev, - :revision => rev, - :author => $2.strip - )) + blame.add_line( + $3.rstrip, + Revision.new( + :identifier => rev, + :revision => rev, + :author => $2.strip + ) + ) end end return nil if $? && $?.exitstatus != 0