From 4406b06ef89b211fb25f733e53bcc8ee398dbbd1 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Wed, 29 Aug 2018 19:20:24 -0700 Subject: [PATCH] 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. --- command/format/diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/format/diff.go b/command/format/diff.go index 4db9b09c17..e642f4c957 100644 --- a/command/format/diff.go +++ b/command/format/diff.go @@ -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))