Skip to content

Commit

Permalink
Fix usage of strings.ReplaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
mrueg committed May 5, 2023
1 parent eba2396 commit 2aa1606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mark/attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func GetChecksum(reader io.Reader) (string, error) {
func parseAttachmentLink(attachLink string) string {
uri, err := url.ParseRequestURI(attachLink)
if err != nil {
return strings.ReplaceAll("&", "&", attachLink)
return strings.ReplaceAll(attachLink, "&", "&")
} else {
return uri.Path +
"?" + url.QueryEscape(uri.Query().Encode())
Expand Down

0 comments on commit 2aa1606

Please sign in to comment.