Unverified Commit 1d2e10c7 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #69541 from justinsb/remove_unnecessary_mkdir

Remove superfluous MkdirAll from MakeTempDirOrDie
parents a34123d9 f841f3ab
......@@ -18,7 +18,6 @@ package utils
import (
"io/ioutil"
"os"
"github.com/golang/glog"
)
......@@ -31,8 +30,5 @@ func MakeTempDirOrDie(prefix string, baseDir string) string {
if err != nil {
glog.Fatalf("Can't make a temp rootdir: %v", err)
}
if err = os.MkdirAll(tempDir, 0750); err != nil {
glog.Fatalf("Can't mkdir(%q): %v", tempDir, err)
}
return tempDir
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment