(realIdx int)
| 82 | } |
| 83 | |
| 84 | func (h *indexedHeap) removeInternal(realIdx int) (key string, size uint) { //nolint:nonamedreturns // gocritic unnamedResult prefers named key and size when removing heap entries |
| 85 | x := heap.Remove(h, realIdx).(heapEntry) //nolint:forcetypeassert,errcheck // Forced type assertion required to implement the heap.Interface interface |
| 86 | return x.key, x.bytes |
| 87 | } |
| 88 | |
| 89 | // Remove entry by index |
| 90 | func (h *indexedHeap) remove(idx int) (key string, size uint) { //nolint:nonamedreturns // gocritic unnamedResult prefers naming returned key and size pair |
no outgoing calls
no test coverage detected