Skip to content

Commit

Permalink
Merge pull request #684 from Icinga/Al2Klimov-patch-2
Browse files Browse the repository at this point in the history
Remove redundant closure
  • Loading branch information
yhabteab authored Mar 25, 2024
2 parents 112f6d7 + 29d1a6b commit a27a743
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 a27a743

Please sign in to comment.