From 01182919b3dce8548709355d9015297f4a59ed98 Mon Sep 17 00:00:00 2001 From: Will Wang Date: Wed, 24 Jul 2024 15:15:59 +0800 Subject: [PATCH] update comments Signed-off-by: Will Wang --- cli/config/configfile/file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/config/configfile/file.go b/cli/config/configfile/file.go index 0842431388..c9652118f4 100644 --- a/cli/config/configfile/file.go +++ b/cli/config/configfile/file.go @@ -167,12 +167,12 @@ func (configFile *ConfigFile) Save() (retErr error) { return errors.Wrap(err, "error closing temp file") } - // Handle situations where `configFile.Filename` is a symlink, and allow for dangling symlinks + // Handle situation where the configfile is a symlink, and allow for dangling symlinks cfgFile := configFile.Filename if f, err := filepath.EvalSymlinks(cfgFile); err == nil { cfgFile = f } else if os.IsNotExist(err) { - // extract the path from the error if `cfgFile` does not exist or is a dangling symlink + // extract the path from the error if the configfile does not exist or is a dangling symlink cfgFile = err.(*os.PathError).Path }