Skip to content

Commit

Permalink
add fumt
Browse files Browse the repository at this point in the history
  • Loading branch information
changluyi committed Aug 30, 2023
1 parent f5fdaef commit 0d58263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/handler_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func createShortSharedDir(pod *v1.Pod, volumeName, kubeletDir string) (err error
mask := syscall.Umask(0)
defer syscall.Umask(mask)
if _, err = os.Stat(newSharedDir); os.IsNotExist(err) {
err = os.MkdirAll(newSharedDir, 0777)
err = os.MkdirAll(newSharedDir, 0o777)
if err != nil {
return fmt.Errorf("createSharedDir: Failed to create dir (%s): %v", newSharedDir, err)
}
Expand Down

0 comments on commit 0d58263

Please sign in to comment.