From 5976b31d8459372e90addc09080d07349f6746d6 Mon Sep 17 00:00:00 2001 From: Kirill Zhuravlev Date: Mon, 20 Feb 2023 14:37:37 +0100 Subject: [PATCH] ++ --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 750990bcd76..de237dbef37 100644 --- a/main.go +++ b/main.go @@ -118,17 +118,17 @@ func dropCreateDir(dir string) error { func mkdirAll(path string) error { _, err := os.Stat(path) - // NOTE: directory is exists + // directory is exists if err == nil { return nil } - // NOTE: unknown error + // unexpected error if !os.IsNotExist(err) { return fmt.Errorf("unexpected result of dir stat: %w", err) } - // NOTE: directory is not exists + // directory is not exists if err := os.MkdirAll(path, 0755); err != nil { return fmt.Errorf("midirAll: %w", err) }