Skip to content

Commit

Permalink
Remove redundant closure
Browse files Browse the repository at this point in the history
which just wraps a method with equal signature.
  • Loading branch information
Al2Klimov authored Mar 8, 2024
1 parent 0e9810c commit 29d1a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (d Driver) OpenConnector(name string) (driver.Connector, error) {
func Register(logger *logging.Logger) {
sql.Register(MySQL, &Driver{ctxDriver: &mysql.MySQLDriver{}, Logger: logger})
sql.Register(PostgreSQL, &Driver{ctxDriver: PgSQLDriver{}, Logger: logger})
_ = mysql.SetLogger(mysqlLogger(func(v ...interface{}) { logger.Debug(v...) }))
_ = mysql.SetLogger(mysqlLogger(logger.Debug))
sqlx.BindDriver(PostgreSQL, sqlx.DOLLAR)
}

Expand Down

0 comments on commit 29d1a6b

Please sign in to comment.