From 29d1a6bafc21f9ac90d611934c9034a38d2a9b66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Fri, 8 Mar 2024 16:41:31 +0100 Subject: [PATCH] Remove redundant closure which just wraps a method with equal signature. --- pkg/driver/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/driver/driver.go b/pkg/driver/driver.go index f529db445..1eecef863 100644 --- a/pkg/driver/driver.go +++ b/pkg/driver/driver.go @@ -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) }