mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-28 19:29:38 +00:00
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:
parent
5d7bddd65c
commit
11ad4d8d02
@ -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:
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user