aboutsummaryrefslogtreecommitdiff
path: root/tx.go
diff options
context:
space:
mode:
Diffstat (limited to 'tx.go')
-rw-r--r--tx.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tx.go b/tx.go
index d16f9f5..5f4c9f0 100644
--- a/tx.go
+++ b/tx.go
@@ -285,7 +285,7 @@ func (tx *Tx) WriteTo(w io.Writer) (n int64, err error) {
if err != nil {
return 0, err
}
- defer f.Close()
+ defer func() { _ = f.Close() }()
// Copy the meta pages.
tx.db.metalock.Lock()