diff --git a/core/config/config.go b/core/config/config.go index 7f96534..a6d5c7d 100644 --- a/core/config/config.go +++ b/core/config/config.go @@ -117,7 +117,7 @@ func (s Interface) SetFromDB(database *sql.DB, _ string) error { // TODO: Перенести это в параметры. table := "config" - q := fmt.Sprintf("SELECT %s.key, %s.value FROM %s", table, table, table) + q := fmt.Sprintf("SELECT %s.key, %s.value FROM %s", table, table, table) //nolint:gosec results, err := database.Query(q) if err != nil || results.Err() != nil { return fmt.Errorf("can't get key-value pairs from DB: %w", err) diff --git a/core/logger/logger.go b/core/logger/logger.go index 14d35bb..f51c7ce 100644 --- a/core/logger/logger.go +++ b/core/logger/logger.go @@ -71,5 +71,5 @@ func (l *Logger) Errorf(format string, args ...interface{}) { func (l *Logger) Fatalf(format string, args ...interface{}) { l.Logger.Fatalf(format, args) - os.Exit(2) //nolint:mnd + os.Exit(2) //nolint:mnd,gomnd }