command/format: Don't include commas after elements in map diffs

Although commas are allowed in this context, it's not idiomatic to use
them.
This commit is contained in:
Martin Atkins 2018-08-29 19:20:24 -07:00
parent ce157c7f23
commit 4406b06ef8
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ func (p *blockBodyDiffPrinter) writeValueDiff(old, new cty.Value, indent int, pa
p.writeValueDiff(oldV, newV, indent+4, path)
}
p.buf.WriteString(",\n")
p.buf.WriteByte('\n')
}
p.buf.WriteString(strings.Repeat(" ", indent))