Skip to content

Commit

Permalink
remove close on DB
Browse files Browse the repository at this point in the history
  • Loading branch information
chilagrow committed Sep 8, 2023
1 parent 474e7f9 commit 58b19d7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/backends/sqlite/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,13 @@ func (b *backend) ListDatabases(ctx context.Context, params *backends.ListDataba
}

if err != nil {
db.Close()
return nil, lazyerrors.Error(err)
}

res.Databases[i] = backends.DatabaseInfo{
Name: dbName,
Size: stats.SizeTotal,
}

db.Close()
}

return res, nil
Expand Down

0 comments on commit 58b19d7

Please sign in to comment.