fixes bug that returns wrong error in Mkdirp()

This commit is contained in:
Jeffrey Paul 2020-09-20 22:34:22 +00:00
parent cdefc88d8f
commit 3239644cc2
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func Mkdirp(p string) error {
if os.IsNotExist(err) {
errDir := os.MkdirAll(p, 0755)
if errDir != nil {
return err
return errDir
}
return nil