File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
38
38
- Explicitly handle ` ?" ` so that it formats properly.
39
39
- Check that a block is within the predicate in a more relaxed way.
40
40
- Ensure the ` Return ` breaks with brackets and not parentheses.
41
+ - Ensure trailing comments on parameter declarations are consistent.
41
42
42
43
### Removed
43
44
Original file line number Diff line number Diff line change @@ -8754,10 +8754,12 @@ def format(q)
8754
8754
parts << KeywordRestFormatter . new ( keyword_rest ) if keyword_rest
8755
8755
parts << block if block
8756
8756
8757
- q . nest ( 0 ) do
8757
+ contents = -> {
8758
8758
q . seplist ( parts ) { |part | q . format ( part ) }
8759
8759
q . format ( rest ) if rest && rest . is_a? ( ExcessedComma )
8760
- end
8760
+ }
8761
+
8762
+ q . parent . is_a? ( Paren ) ? q . nest ( 0 , &contents ) : q . group ( &contents )
8761
8763
end
8762
8764
8763
8765
def pretty_print ( q )
You can’t perform that action at this time.
0 commit comments