remove unused value

This commit is contained in:
James Bardin 2018-11-16 15:28:30 -05:00
parent db968733da
commit e4270993be

View File

@ -595,19 +595,11 @@ func (d *InstanceDiff) applyCollectionDiff(attrName string, oldAttrs map[string]
idx = attrName + ".%"
}
// record if we got the index from the diff
setIndex := false
for k := range keys {
if !strings.HasPrefix(k, attrName+".") {
continue
}
// we need to verify if we saw the index later
if k == idx {
setIndex = true
}
res, err := d.applyAttrDiff(k, oldAttrs, attrSchema)
if err != nil {
return result, err