We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a85a37e commit 0118291Copy full SHA for 0118291
1 file changed
cli/config/configfile/file.go
@@ -167,12 +167,12 @@ func (configFile *ConfigFile) Save() (retErr error) {
167
return errors.Wrap(err, "error closing temp file")
168
}
169
170
- // 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
171
cfgFile := configFile.Filename
172
if f, err := filepath.EvalSymlinks(cfgFile); err == nil {
173
cfgFile = f
174
} else if os.IsNotExist(err) {
175
- // 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
176
cfgFile = err.(*os.PathError).Path
177
178
0 commit comments