Lint
continuous-integration/drone/push Build is passing Details

master
Андрей Иванов 2024-09-10 13:23:37 +03:00
parent 1850093a07
commit f72ba8cae3
2 changed files with 2 additions and 2 deletions

View File

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

View File

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