Skip to content

Commit

Permalink
Merge fedb13a into backport/liamcervante/blank-line-formatting/seriou…
Browse files Browse the repository at this point in the history
…sly-engaging-koi
  • Loading branch information
teamterraform committed Jun 30, 2022
2 parents 81e1a6a + fedb13a commit 07d9152
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/command/format/diff.go
Expand Up @@ -807,6 +807,8 @@ func (p *blockBodyDiffPrinter) writeNestedBlockDiffs(name string, blockS *config
newItem := cty.NullVal(oldItem.Type())
skipped := p.writeNestedBlockDiff(name, nil, &blockS.Block, plans.Delete, oldItem, newItem, indent, blankBeforeInner, path)
if skipped {
skippedBlocks++
} else {
blankBeforeInner = false
}
}
Expand All @@ -816,6 +818,8 @@ func (p *blockBodyDiffPrinter) writeNestedBlockDiffs(name string, blockS *config
oldItem := cty.NullVal(newItem.Type())
skipped := p.writeNestedBlockDiff(name, nil, &blockS.Block, plans.Create, oldItem, newItem, indent, blankBeforeInner, path)
if skipped {
skippedBlocks++
} else {
blankBeforeInner = false
}
}
Expand Down

0 comments on commit 07d9152

Please sign in to comment.