chore: upgrade golangci-lint

This commit is contained in:
Oleg Lobanov 2021-07-26 12:00:05 +02:00
parent 201329abce
commit 34d7d2c8c4
No known key found for this signature in database
GPG key ID: 7CC64E41212621B0
17 changed files with 37 additions and 45 deletions

View file

@ -72,7 +72,7 @@ func dbExists(path string) (bool, error) {
d := filepath.Dir(path)
_, err = os.Stat(d)
if os.IsNotExist(err) {
if err := os.MkdirAll(d, 0700); err != nil { //nolint:govet
if err := os.MkdirAll(d, 0700); err != nil { //nolint:govet,gomnd
return false, err
}
return false, nil