]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in lib/redmine/scm/adapter...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 21 Nov 2019 12:46:07 +0000 (12:46 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 21 Nov 2019 12:46:07 +0000 (12:46 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19137 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/git_adapter.rb

index b25331ddb4950ed4e33996eb7cc0ff32e410e475..1d0b770b878e2d971be4b04162b2f06ae549c169 100644 (file)
@@ -357,12 +357,15 @@ module Redmine
             elsif line =~ /^author (.+)/
               authors_by_commit[identifier] = $1.strip
             elsif line =~ /^\t(.*)/
-              blame.add_line($1, Revision.new(
-                                    :identifier => identifier,
-                                    :revision   => identifier,
-                                    :scmid      => identifier,
-                                    :author     => authors_by_commit[identifier]
-                                    ))
+              blame.add_line(
+                $1,
+                Revision.new(
+                  :identifier => identifier,
+                  :revision   => identifier,
+                  :scmid      => identifier,
+                  :author     => authors_by_commit[identifier]
+                )
+              )
               identifier = ''
               author = ''
             end
@@ -404,11 +407,12 @@ module Redmine
             full_args << '-c' << 'log.decorate=no'
           end
           full_args += args
-          ret = shellout(
-                   self.class.sq_bin + ' ' + full_args.map { |e| shell_quote e.to_s }.join(' '),
-                   options,
-                   &block
-                   )
+          ret =
+            shellout(
+              self.class.sq_bin + ' ' + full_args.map { |e| shell_quote e.to_s }.join(' '),
+              options,
+              &block
+            )
           if $? && $?.exitstatus != 0
             raise ScmCommandAborted, "git exited with non-zero status: #{$?.exitstatus}"
           end