Skip to content

Commit 380dbae

Browse files
committed
Fixing string usage
1 parent 76a1298 commit 380dbae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/profiles.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (p *Profiles) Save() error {
177177
re := regexp.MustCompile(`(Users\\).*(\\)`)
178178
interimString := re.ReplaceAllString(profilesFile, `Users\*****\`)
179179
re := regexp.MustCompile(`(home/).*(/)`)
180-
slog.Info("saving profiles", slog.String("path", re.ReplaceAllString(profilesFile, `home/*****/`)))
180+
slog.Info("saving profiles", slog.String("path", re.ReplaceAllString(interimString, `home/*****/`)))
181181

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

0 commit comments

Comments
 (0)