From 58b19d72dfcf5eae856ad6bad3ce54c5a33fe721 Mon Sep 17 00:00:00 2001 From: Chi Fujii Date: Fri, 8 Sep 2023 10:48:33 +0900 Subject: [PATCH] remove close on DB --- internal/backends/sqlite/backend.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/backends/sqlite/backend.go b/internal/backends/sqlite/backend.go index cab25bf746d1..b466dfcf5c5c 100644 --- a/internal/backends/sqlite/backend.go +++ b/internal/backends/sqlite/backend.go @@ -89,7 +89,6 @@ func (b *backend) ListDatabases(ctx context.Context, params *backends.ListDataba } if err != nil { - db.Close() return nil, lazyerrors.Error(err) } @@ -97,8 +96,6 @@ func (b *backend) ListDatabases(ctx context.Context, params *backends.ListDataba Name: dbName, Size: stats.SizeTotal, } - - db.Close() } return res, nil