Skip to content

Commit 0118291

Browse files
committed
update comments
Signed-off-by: Will Wang <willww64@gmail.com>
1 parent a85a37e commit 0118291

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/config/configfile/file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ func (configFile *ConfigFile) Save() (retErr error) {
167167
return errors.Wrap(err, "error closing temp file")
168168
}
169169

170-
// Handle situations where `configFile.Filename` is a symlink, and allow for dangling symlinks
170+
// Handle situation where the configfile is a symlink, and allow for dangling symlinks
171171
cfgFile := configFile.Filename
172172
if f, err := filepath.EvalSymlinks(cfgFile); err == nil {
173173
cfgFile = f
174174
} else if os.IsNotExist(err) {
175-
// extract the path from the error if `cfgFile` does not exist or is a dangling symlink
175+
// extract the path from the error if the configfile does not exist or is a dangling symlink
176176
cfgFile = err.(*os.PathError).Path
177177
}
178178

0 commit comments

Comments
 (0)