From f72ba8cae34b61e5d47b793be89a79e84f9f21e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=98=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Tue, 10 Sep 2024 13:23:37 +0300 Subject: [PATCH] Lint --- core/config/config.go | 2 +- core/logger/logger.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }