瀏覽代碼

pkg/idtools: mkdirAs() be more explicit about ignored args on Windows

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 年之前
父節點
當前提交
27aea4956c
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      pkg/idtools/idtools_windows.go

+ 2 - 5
pkg/idtools/idtools_windows.go

@@ -19,11 +19,8 @@ const (
 // permissions aren't set through this path, the identity isn't utilized.
 // Ownership is handled elsewhere, but in the future could be support here
 // too.
-func mkdirAs(path string, mode os.FileMode, owner Identity, mkAll, chownExisting bool) error {
-	if err := system.MkdirAll(path, mode); err != nil {
-		return err
-	}
-	return nil
+func mkdirAs(path string, _ os.FileMode, _ Identity, _, _ bool) error {
+	return system.MkdirAll(path, 0)
 }
 
 // CanAccess takes a valid (existing) directory and a uid, gid pair and determines