v0.1.33 v0.1.33
Vernon Keenan 2021-01-27 13:17:16 -08:00
parent 308742d054
commit f7959d3333
3 changed files with 2 additions and 6 deletions

View File

@ -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 ""

View File

@ -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()
}

View File

@ -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())
}