build: fix gocritic lint issue assignop

This commit is contained in:
albertony
2024-08-15 22:08:34 +01:00
committed by Nick Craig-Wood
parent 59501fcdb6
commit c6d3714e73
10 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ func MkdirAll(path string, perm os.FileMode) error {
// In extended-length form without trailing slash ("\\?\C:"), os.Stat
// and os.Mkdir both fails. With trailing slash ("\\?\C:\") works,
// and regular paths with or without it ("C:" and "C:\") both works.
path = path + string(os.PathSeparator)
path += string(os.PathSeparator)
} else {
// See if there is a parent to be created first.
// Not when path refer to a drive's root directory, because we don't