Update linter
This commit is contained in:
parent
800e707df7
commit
ecbd550f13
2 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,8 @@ linters:
|
|||
- structcheck
|
||||
- exhaustivestruct
|
||||
- nosnakecase
|
||||
- gomnd
|
||||
- execinquery
|
||||
# To extremist/unusable
|
||||
- depguard
|
||||
- varnamelen
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
func (config Config) Init() {
|
||||
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 {
|
||||
logrus.Fatal("Cannot open log file: ", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue