stop setting N on a frozen container

This commit is contained in:
Travis 2020-08-14 17:25:14 -05:00
parent cd83f7965c
commit ff5925aa8b
No known key found for this signature in database
GPG key ID: 37080CC2042BA34E

View file

@ -3287,7 +3287,6 @@ func (c *Container) arrayRemove(v uint16) (*Container, bool) {
}
// removing the last item? we can just return the empty container.
if c.N() == 1 {
c.n = 0
return nil, true
}
c = c.Thaw()
@ -3304,7 +3303,6 @@ func (c *Container) bitmapRemove(v uint16) (*Container, bool) {
}
// removing the last item? we can just return the empty container.
if c.N() == 1 {
c.n = 0
return nil, true
}
c = c.Thaw()
@ -3330,7 +3328,6 @@ func (c *Container) runRemove(v uint16) (*Container, bool) {
}
// removing the last item? we can just return the empty container.
if c.N() == 1 {
c.n = 0
return nil, true
}
c = c.Thaw()