]> source.dussan.org Git - redmine.git/commitdiff
code clean up GitAdapter
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 4 Apr 2019 16:33:02 +0000 (16:33 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 4 Apr 2019 16:33:02 +0000 (16:33 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18038 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/git_adapter.rb

index 07741aac2ee80b7499ac5b746f9dc2afb6449755..face00a5d202c336071dbc7248ee05ee270b9e87 100644 (file)
@@ -366,9 +366,7 @@ module Redmine
         end
 
         def cat(path, identifier=nil)
-          if identifier.nil?
-            identifier = 'HEAD'
-          end
+          identifier = 'HEAD' if identifier.nil?
           cmd_args = %w|show --no-color|
           cmd_args << "#{identifier}:#{scm_iconv(@path_encoding, 'UTF-8', path)}"
           cat = nil