diff --git a/command/format/diff.go b/command/format/diff.go index a684315843..f5f13c1e4f 100644 --- a/command/format/diff.go +++ b/command/format/diff.go @@ -133,8 +133,8 @@ func ResourceChange( changeV.Change.After = changeV.Change.After.MarkWithPaths(change.AfterValMarks) } - bodyWritten := p.writeBlockBodyDiff(schema, changeV.Before, changeV.After, 6, path) - if bodyWritten { + result := p.writeBlockBodyDiff(schema, changeV.Before, changeV.After, 6, path) + if result.bodyWritten { buf.WriteString("\n") buf.WriteString(strings.Repeat(" ", 4)) }