From 29541f0c189886a111c7ac027efee664e2969e54 Mon Sep 17 00:00:00 2001 From: Lucas Fernando Cardoso Nunes Date: Thu, 19 Sep 2024 13:06:37 -0300 Subject: [PATCH] style: --- pkg/drivers/mysql/mysql.go | 1 - pkg/drivers/pgsql/pgsql.go | 1 - 2 files changed, 2 deletions(-) diff --git a/pkg/drivers/mysql/mysql.go b/pkg/drivers/mysql/mysql.go index 91ab29ed..839a0d48 100644 --- a/pkg/drivers/mysql/mysql.go +++ b/pkg/drivers/mysql/mysql.go @@ -178,7 +178,6 @@ func createDBIfNotExist(dataSourceName string) error { logrus.Warnf("failed to check existence of database %s, going to attempt create: %v", dbName, err) } - if !exists { stmt := fmt.Sprintf(createDB, dbName) logrus.Tracef("SETUP EXEC : %v", util.Stripped(stmt)) diff --git a/pkg/drivers/pgsql/pgsql.go b/pkg/drivers/pgsql/pgsql.go index fa2c6d1c..5c166085 100644 --- a/pkg/drivers/pgsql/pgsql.go +++ b/pkg/drivers/pgsql/pgsql.go @@ -165,7 +165,6 @@ func createDBIfNotExist(dataSourceName string) error { logrus.Warnf("failed to check existence of database %s, going to attempt create: %v", dbName, err) } - if !exists { stmt := fmt.Sprintf(createDB, dbName) logrus.Tracef("SETUP EXEC : %v", util.Stripped(stmt))