Lint
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1850093a07
commit
f72ba8cae3
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue