Skip to content

Commit

Permalink
Merge pull request #102 from disneystreaming/dfrancoeur/trailing-comma
Browse files Browse the repository at this point in the history
Remove trailing comma when using newline
  • Loading branch information
daddykotex authored Mar 10, 2023
2 parents f34c32a + 4a8aeab commit 1631d7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modules/formatter/src/writer/ShapeWriter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ object ShapeWriter {
list
.map(_.write)
.map(indent(_, "\n", 4))
.mkString_("[\n", ",\n", s"\n${whitespace1.write}]")
.mkString_("[\n", "\n", s"\n${whitespace1.write}]")
else list.map(_.write).mkString_("[", ", ", s"${whitespace1.write}]")
s" with${whitespace.write} $values"
}
Expand Down
12 changes: 6 additions & 6 deletions modules/formatter/tests/src/FormatterSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -542,12 +542,12 @@ final class FormatterSpec extends munit.FunSuite {
|namespace test
|
|structure Struct with [
| Mixin,
| Mixin,
| Mixin,
| Mixin,
| Mixin,
| Mixin,
| Mixin
| Mixin
| Mixin
| Mixin
| Mixin
| Mixin
| Mixin
|] {}
|
Expand Down

0 comments on commit 1631d7c

Please sign in to comment.