Skip to content

Commit

Permalink
Fix copy-paste error inside NestingList logic
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcervante committed Jun 30, 2022
1 parent b20c016 commit fedb13a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/command/format/diff.go
Original file line number Diff line number Diff line change
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 fedb13a

Please sign in to comment.