Merge pull request #14201 from lishaokai1995/main

Fix syntax errors in comments
This commit is contained in:
Piotr Tabor 2022-07-13 16:33:01 +02:00 committed by GitHub
commit dae7838c44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ func IsDirWriteable(dir string) error {
// does not exists. TouchDirAll also ensures the given directory is writable.
func TouchDirAll(lg *zap.Logger, dir string) error {
// If path is already a directory, MkdirAll does nothing and returns nil, so,
// first check if dir exist with an expected permission mode.
// first check if dir exists with an expected permission mode.
if Exist(dir) {
err := CheckDirPermission(dir, PrivateDirMode)
if err != nil {