mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01: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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user