mirror of
https://github.com/kopia/kopia.git
synced 2026-03-16 21:28:15 -04:00
fixed lint error
This commit is contained in:
@@ -156,8 +156,8 @@ func (c *blockCache) sweepDirectory(ctx context.Context) (err error) {
|
||||
|
||||
if totalRetainedSize > c.maxSizeBytes {
|
||||
oldest := heap.Pop(&h).(storage.BlockMetadata)
|
||||
if err := c.cacheStorage.DeleteBlock(ctx, it.BlockID); err != nil {
|
||||
log.Warningf("unable to remove %v: %v", it.BlockID, err)
|
||||
if delerr := c.cacheStorage.DeleteBlock(ctx, it.BlockID); delerr != nil {
|
||||
log.Warningf("unable to remove %v: %v", it.BlockID, delerr)
|
||||
} else {
|
||||
totalRetainedSize -= oldest.Length
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user