Skip to content

Commit bca80b1

Browse files
committed
fixing lint
1 parent 380dbae commit bca80b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/profiles.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ func (p *Profiles) Save() error {
176176
profilesFile := filepath.Join(viper.GetString("local-dir"), viper.GetString("profiles-file"))
177177
re := regexp.MustCompile(`(Users\\).*(\\)`)
178178
interimString := re.ReplaceAllString(profilesFile, `Users\*****\`)
179-
re := regexp.MustCompile(`(home/).*(/)`)
180-
slog.Info("saving profiles", slog.String("path", re.ReplaceAllString(interimString, `home/*****/`)))
179+
re2 := regexp.MustCompile(`(home/).*(/)`)
180+
slog.Info("saving profiles", slog.String("path", re2.ReplaceAllString(interimString, `home/*****/`)))
181181

182182
profilesJSON, err := json.MarshalIndent(p, "", " ")
183183
if err != nil {

0 commit comments

Comments
 (0)