Skip to content

Commit

Permalink
cmd/migrate: use correct strconv.Quote
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo committed Mar 20, 2023
1 parent 6414ddb commit d905113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func updateImports(filePath string, dryRun bool) error {
}
fmt.Printf("changing %s => %s in %s\n", x.Path.Value, newVal, filePath)
if !dryRun {
x.Path.Value = fmt.Sprintf(`"%s"`, newVal)
x.Path.Value = strconv.Quote(newVal)
fileChanged = true
}
}
Expand Down

0 comments on commit d905113

Please sign in to comment.