Replace current with a new StateEntryList rather than individually setting the fields

This commit is contained in:
Mark Haines 2017-03-09 14:32:50 +00:00
parent dd45ddad0e
commit 83e20be7b2

View file

@ -198,8 +198,7 @@ func (s *stateBlockStatements) bulkSelectFilteredStateBlockEntries(
if current.StateEntries != nil { if current.StateEntries != nil {
results = append(results, current) results = append(results, current)
} }
current.StateBlockNID = types.StateBlockNID(stateBlockNID) current = types.StateEntryList{StateBlockNID: types.StateBlockNID(stateBlockNID)}
current.StateEntries = nil
} }
current.StateEntries = append(current.StateEntries, entry) current.StateEntries = append(current.StateEntries, entry)
} }