Skip to content

Commit

Permalink
Fix potential panic in unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
alisdair authored and apparentlymart committed Mar 3, 2020
1 parent 15208b5 commit aa51091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cty/convert/unify.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func unifyMapTypes(types []cty.Type, unsafe bool, hasDynamic bool) (cty.Type, []
}
if conversions[i] == nil {
// Shouldn't be reachable, since we were able to unify
return unifyObjectTypesToMap(types, unsafe)
return cty.NilType, nil
}
}

Expand Down

0 comments on commit aa51091

Please sign in to comment.