lib/slim_lint/sexp.rb in slim_lint-0.6.1 vs lib/slim_lint/sexp.rb in slim_lint-0.7.0
- old
+ new
@@ -82,14 +82,15 @@
each_with_index do |nested_sexp, index|
output << "\n"
output += indentation
- if nested_sexp.is_a?(SlimLint::Sexp)
- output += nested_sexp.display(depth + 1)
- else
- output += nested_sexp.inspect
- end
+ output +=
+ if nested_sexp.is_a?(SlimLint::Sexp)
+ nested_sexp.display(depth + 1)
+ else
+ nested_sexp.inspect
+ end
# Add trailing comma unless this is the last item
output += ',' if index < length - 1
end