Skip to content

Commit

Permalink
Merge pull request kubernetes#69541 from justinsb/remove_unnecessary_…
Browse files Browse the repository at this point in the history
…mkdir

Remove superfluous MkdirAll from MakeTempDirOrDie
  • Loading branch information
k8s-ci-robot authored Oct 9, 2018
2 parents a34123d + f841f3a commit 1d2e10c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/utils/tmpdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package utils

import (
"io/ioutil"
"os"

"github.com/golang/glog"
)
Expand All @@ -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
}

0 comments on commit 1d2e10c

Please sign in to comment.