cleanup: rubocop: fix Style/MultilineBlockChain in lib/redmine/scm/adapters/mercurial_adapter.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18957 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2019-11-08 12:34:33 +00:00
parent 5d7bddd65c
commit 11ad4d8d02
2 changed files with 2 additions and 5 deletions

View File

@@ -1216,10 +1216,6 @@ Style/MixinUsage:
Exclude:
- 'test/test_helper.rb'
Style/MultilineBlockChain:
Exclude:
- 'lib/redmine/scm/adapters/mercurial_adapter.rb'
# Cop supports --auto-correct.
Style/MultilineIfModifier:
Exclude:

View File

@@ -211,7 +211,8 @@ module Redmine
:path => with_leading_slash(p),
:from_path => (cpmap.member?(p) ? with_leading_slash(cpmap[p]) : nil),
:from_revision => (cpmap.member?(p) ? le['node'] : nil)}
end.sort_by { |e| e[:path] }
end
paths.sort_by!{|e| e[:path]}
parents_ary = []
as_ary(le['parents']['parent']).map do |par|
parents_ary << par['__content__'] if par['__content__'] != "0000000000000000000000000000000000000000"