From a99b4e6d1579ae37a35d37d206c09d2533454433 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 21 Nov 2019 10:56:24 +0000 Subject: [PATCH] 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 --- .rubocop_todo.yml | 1 - lib/redmine/scm/adapters/subversion_adapter.rb | 14 ++++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) 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 -- 2.39.5