Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify call to
tfbridge.IsMaxItemsOne
The body is `tfbridge.IsMaxItemsOne` is: ```go func IsMaxItemsOne(tfs shim.Schema, info *SchemaInfo) bool { if tfs == nil { return false } if tfs.Type() != shim.TypeList && tfs.Type() != shim.TypeSet { return false } if info != nil && info.MaxItemsOne != nil { return *info.MaxItemsOne } return tfs.MaxItems() == 1 } ``` Thus, checking if `tfs` is of `shim.Type{List,Set}` before calling `tfbridge.IsMaxItemsOne` is redundant.
- Loading branch information