chore: make as exception to mnd
This commit is contained in:
1 parent
8230eb7ab5
commit
ae4fb0ea25
8 files changed
+19
-13
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user