rubocop: Layout/MultilineMethodCallBraceLayout, 119

This commit is contained in:
Peter Bhat Harkins 2018-03-19 13:57:21 -05:00
parent ff7db7c34d
commit 21e12dcd89
2 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,8 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
Enabled: false
Layout/IndentHash:
EnforcedStyle: consistent
Layout/MultilineMethodCallBraceLayout:
Enabled: false
Layout/MultilineMethodCallIndentation:
Enabled: false
Layout/SpaceAroundOperators:

View File

@ -186,8 +186,7 @@ Comment.where(
thread = []
indent_level = 0
Comment.where(:thread_id => c.thread_id).arrange_for_user(
nil).reverse.each do |cc|
Comment.where(:thread_id => c.thread_id).arrange_for_user(nil).reverse.each do |cc|
if indent_level > 0 && cc.indent_level < indent_level
thread.unshift cc
indent_level = cc.indent_level