diff --git a/app/auth0.go b/app/auth0.go index 9325ece..533a3cb 100644 --- a/app/auth0.go +++ b/app/auth0.go @@ -146,7 +146,7 @@ func GetAuth0AccessToken() string { if err != nil { return "" } - defer res.Body.Close() + defer res.Body.Close() //nolint:errcheck // it's defered body, err := ioutil.ReadAll(res.Body) if err != nil { return "" diff --git a/app/logger/logger.go b/app/logger/logger.go index 9d2825b..7e5fb5f 100644 --- a/app/logger/logger.go +++ b/app/logger/logger.go @@ -38,6 +38,6 @@ func New(level zapcore.Level) *logger { log.Fatal("logger.New: 💣 ⛔ zap logger init fail") } // theLogger.SetLevel - defer theLogger.Sync() + defer theLogger.Sync() //nolint:errcheck // it's defered return theLogger.Sugar() } diff --git a/app/mysql.go b/app/mysql.go index 93f4628..36db634 100644 --- a/app/mysql.go +++ b/app/mysql.go @@ -24,10 +24,6 @@ func InitDB() { sugar.Fatalf("app.InitDB: 💣 ⛔ Can't log on to DBMS host: %w", err) return } - _, err = db.Exec("set foreign_key_check=0") - if err != nil { - sugar.Warnf("app.InitDB: 💣⛔ can't disable foreign key check") - } MyDB = db sugar.Debugf("app.InitDB: 👍 📤 %s", GetDBMS()) }