Skip to content

Commit 0c3b7cf

Browse files
author
Paddy Carver
committed
Fix which type we're checking for nil on in maps.
1 parent b908c7e commit 0c3b7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tfprotov5/tftypes/map.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func (m Map) Is(t Type) bool {
1111
if !ok {
1212
return false
1313
}
14-
if m.AttributeType != nil {
14+
if v.AttributeType != nil {
1515
return m.AttributeType.Is(v.AttributeType)
1616
}
1717
return ok

0 commit comments

Comments
 (0)