-
-
Couldn't load subscription status.
- Fork 62
Open
Labels
Description
Empty hash literals get expanded to multiple lines, which is hard to read. Empty arrays don't do this, which is (in my opinion) the correct behavior:
Original:
nested_with_empty_hash = {
a: {
b: {},
c: [],
d: [{}, stuff, [], other_stuff]
}
}After formatting:
nested_with_empty_hash = {
a: {
b: {
},
c: [],
d: [{}, stuff, [], other_stuff]
}
}egreer, ryanb, jtzero, vburzynski and frou