From: Toshi MARUYAMA Date: Sat, 23 Nov 2019 07:57:40 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/IndentFirstHashElement in lib/redmine/scm/adapters/subve... X-Git-Tag: 4.2.0~1459 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bcd9ce0a531798f704e5764b8587b9a7af7bc3f7;p=redmine.git cleanup: rubocop: fix Layout/IndentFirstHashElement in lib/redmine/scm/adapters/subversion_adapter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19181 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/scm/adapters/subversion_adapter.rb b/lib/redmine/scm/adapters/subversion_adapter.rb index 76e7917fd..06420620d 100644 --- a/lib/redmine/scm/adapters/subversion_adapter.rb +++ b/lib/redmine/scm/adapters/subversion_adapter.rb @@ -69,11 +69,14 @@ module Redmine doc = parse_xml(output) # root_url = doc.elements["info/entry/repository/root"].text info = Info.new({:root_url => doc['info']['entry']['repository']['root']['__content__'], - :lastrev => Revision.new({ - :identifier => doc['info']['entry']['commit']['revision'], - :time => Time.parse(doc['info']['entry']['commit']['date']['__content__']).localtime, - :author => (doc['info']['entry']['commit']['author'] ? doc['info']['entry']['commit']['author']['__content__'] : "") - }) + :lastrev => + Revision.new( + { + :identifier => doc['info']['entry']['commit']['revision'], + :time => Time.parse(doc['info']['entry']['commit']['date']['__content__']).localtime, + :author => (doc['info']['entry']['commit']['author'] ? doc['info']['entry']['commit']['author']['__content__'] : "") + } + ) }) rescue end @@ -109,11 +112,14 @@ module Redmine :path => ((path.empty? ? "" : "#{path}/") + name), :kind => entry['kind'], :size => ((s = entry['size']) ? s['__content__'].to_i : nil), - :lastrev => Revision.new({ - :identifier => commit['revision'], - :time => Time.parse(commit_date['__content__'].to_s).localtime, - :author => ((a = commit['author']) ? a['__content__'] : nil) - }) + :lastrev => + Revision.new( + { + :identifier => commit['revision'], + :time => Time.parse(commit_date['__content__'].to_s).localtime, + :author => ((a = commit['author']) ? a['__content__'] : nil) + } + ) }) end rescue => e