Update linter

This commit is contained in:
Ada 2024-05-22 01:41:34 +02:00
parent 800e707df7
commit ecbd550f13
Signed by: ada
GPG key ID: 6A7F898157C6DE6E
2 changed files with 3 additions and 1 deletions

View file

@ -12,6 +12,8 @@ linters:
- structcheck - structcheck
- exhaustivestruct - exhaustivestruct
- nosnakecase - nosnakecase
- gomnd
- execinquery
# To extremist/unusable # To extremist/unusable
- depguard - depguard
- varnamelen - varnamelen

View file

@ -8,7 +8,7 @@ import (
func (config Config) Init() { func (config Config) Init() {
if config.File != "" { if config.File != "" {
file, err := os.OpenFile(config.File, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o640) //nolint:gomnd file, err := os.OpenFile(config.File, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o640) //nolint:mnd
if err != nil { if err != nil {
logrus.Fatal("Cannot open log file: ", err) logrus.Fatal("Cannot open log file: ", err)
} }