chore: make as exception to mnd

This commit is contained in:
Henrique Dias committed 2025-06-27 08:19:34 +02:00
1 parent 8230eb7ab5
commit ae4fb0ea25
8 files changed
+19 -13

No files matched your search

+1 -1
View File
@@ -73,7 +73,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,mnd
if err := os.MkdirAll(d, 0700); err != nil { //nolint:govet
return false, err
}
return false, nil