Fix tests broken by hasty merging

This commit is contained in:
Marcus Cobden
2018-05-03 19:27:50 +01:00
parent 4fae760b06
commit 0dfbe8b10f

View File

@@ -74,7 +74,7 @@ func (n NodeSet) Delete(ids ...string) NodeSet {
// UnsafeMerge combines the two NodeSets, altering n
func (n *NodeSet) UnsafeMerge(other NodeSet) {
if other.psMap == nil {
if other.psMap == nil || other.psMap.Size() == 0 {
return
}
if n.psMap == nil {