From 21c62034380b6875a71d48e6d4e0e1cf67d65fd6 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 7 May 2021 11:15:13 -0600 Subject: [PATCH] Fix linter --- boltdb/attrstore.go | 2 +- idalloc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boltdb/attrstore.go b/boltdb/attrstore.go index 4c74a70a2..7367e31f1 100644 --- a/boltdb/attrstore.go +++ b/boltdb/attrstore.go @@ -282,7 +282,7 @@ func (s *attrStore) WriteTo(w io.Writer) (int64, error) { if err != nil { return 0, err } - defer tx.Rollback() + defer func() { _ = tx.Rollback() }() return tx.WriteTo(w) } diff --git a/idalloc.go b/idalloc.go index d73a1a103..c9c954d76 100644 --- a/idalloc.go +++ b/idalloc.go @@ -82,7 +82,7 @@ func (ida *idAllocator) WriteTo(w io.Writer) (int64, error) { if err != nil { return 0, err } - defer tx.Rollback() + defer func() { _ = tx.Rollback() }() return tx.WriteTo(w) }