Skip to content

Commit 01fc6ee

Browse files
committed
lru: return writeIndex error in Put
Suggested by joshblum. Issue: keybase#18749
1 parent 7db043f commit 01fc6ee

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎go/lru/disk_lru.go‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,7 @@ func (d *DiskLRU) Put(ctx context.Context, lctx libkb.LRUContext, key string, va
327327
defer func() {
328328
// Commit the index
329329
if err == nil && index != nil && index.IsDirty() {
330-
err := d.writeIndex(ctx, lctx, index, true)
331-
if err != nil {
332-
d.debug(ctx, lctx, "Get: error writing index: %+v", err)
333-
}
330+
err = d.writeIndex(ctx, lctx, index, true)
334331
}
335332
}()
336333

0 commit comments

Comments
 (0)