Go after 0.42gb of remaining literal store
This commit is contained in:
parent
178ae0d465
commit
f6905d3720
@ -198,11 +198,11 @@ func (oc *Collection) Add(cdi CorsoDriveItemable) bool {
|
|||||||
// oc.driveItems[ptr.Val(item.GetId())] = item
|
// oc.driveItems[ptr.Val(item.GetId())] = item
|
||||||
|
|
||||||
//cdi := ToCorsoDriveItemable(item)
|
//cdi := ToCorsoDriveItemable(item)
|
||||||
_, found := oc.driveItems[ptr.Val(cdi.GetId())]
|
//_, found := oc.driveItems[ptr.Val(cdi.GetId())]
|
||||||
oc.driveItems[ptr.Val(cdi.GetId())] = cdi
|
//oc.driveItems[ptr.Val(cdi.GetId())] = cdi
|
||||||
|
|
||||||
// if !found, it's a new addition
|
// if !found, it's a new addition
|
||||||
return !found
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove removes a item from the collection
|
// Remove removes a item from the collection
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user