Skip to content

Commit

Permalink
Refactor outputString format to remove extra line break in GetLinks f…
Browse files Browse the repository at this point in the history
…unction
  • Loading branch information
marcusziade committed Apr 1, 2023
1 parent b3dfc2a commit 7ef2cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion songlinkfetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GetLinks(searchURL string) error {

nonLocalURL := strings.ReplaceAll(linksResponse.PageURL, "/fi", "")
spotifyURL := linksResponse.LinksByPlatform.Spotify
outputString := fmt.Sprintf("<%s>\n\n%s", nonLocalURL, strings.Trim(spotifyURL.URL, "{}"))
outputString := fmt.Sprintf("<%s>\n%s", nonLocalURL, strings.Trim(spotifyURL.URL, "{}"))

err = clipboard.WriteAll(outputString)
if err != nil {
Expand Down

0 comments on commit 7ef2cb4

Please sign in to comment.