Skip to content

Commit fbead99

Browse files
committed
Remove useless MkdirAll
Signed-off-by: apostasie <spam_blackhole@farcloser.world>
1 parent 8e77757 commit fbead99

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/clientutil/client.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ func NewClientWithPlatform(ctx context.Context, namespace, address, platform str
8282
// "1935db9" is from `$(echo -n "/run/containerd/containerd.sock" | sha256sum | cut -c1-8)`
8383
// on Windows it will return "%PROGRAMFILES%/nerdctl/1935db59"
8484
func DataStore(dataRoot, address string) (string, error) {
85-
if err := os.MkdirAll(dataRoot, 0700); err != nil {
86-
return "", err
87-
}
8885
addrHash, err := getAddrHash(address)
8986
if err != nil {
9087
return "", err

0 commit comments

Comments
 (0)