Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed May 16, 2024
1 parent 8b88520 commit c6d15ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datasource/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ func Analyze(dsn config.DSN) (*schema.Schema, error) {
}

db, err := dburl.Open(urlstr)
defer func() {
_ = db.Close()
}()
if err != nil {
return s, errors.WithStack(err)
}
defer func() {
_ = db.Close()
}()
if err := db.Ping(); err != nil {
return s, errors.WithStack(err)
}
Expand Down

0 comments on commit c6d15ac

Please sign in to comment.