Skip to content

Commit

Permalink
remove an unreachable check
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin committed Oct 18, 2024
1 parent 2becf4c commit 4d3de2a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/iac/terraform/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,10 +691,6 @@ func (b *Block) validateForEach() (cty.Value, error) {
return cty.NilVal, fmt.Errorf("cannot use a %s value in for_each. An iterable collection is required", forEachVal.GoString())
}

if forEachVal.IsNull() || !forEachVal.IsKnown() {
return cty.NilVal, errors.New("cannot use a null or unknown value in for_each")
}

return forEachVal, nil
}

Expand Down

0 comments on commit 4d3de2a

Please sign in to comment.