Fix linter complaints

new-query-chunks-api
Vinícius Garcia 2022-04-19 17:46:09 -03:00
parent 2e3c809c8c
commit 1eca192677
1 changed files with 1 additions and 0 deletions

View File

@ -891,6 +891,7 @@ func (c DB) Transaction(ctx context.Context, fn func(Provider) error) error {
}
}
// Close implements the io.Closer interface
func (c DB) Close() error {
closer, ok := c.db.(io.Closer)
if ok {