Skip to content

Commit

Permalink
More clearly indicate func purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
taylormonacelli committed Aug 2, 2024
1 parent 5add40c commit fa05131
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
var linkTransforms = []func(io.Reader, io.Writer) error{
links.RemoveWhitespaceFromMarkdownLinks,
links.RemoveTitlesFromMarkdownLinks,
links.RemoveParamsFromYoutubeURLs,
links.RemoveYoutubeParams,
links.RemoveYouTubeCountFromMarkdownLinks,
}

Expand Down
2 changes: 1 addition & 1 deletion core/links/yt.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func isYouTubeURL(u *url.URL) bool {
return false
}

func RemoveParamsFromYoutubeURLs(r io.Reader, w io.Writer) error {
func RemoveYoutubeParams(r io.Reader, w io.Writer) error {
processors := []URLProcessor{
&YouTubeURLProcessor{},
}
Expand Down
2 changes: 1 addition & 1 deletion core/links/yt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ And this one: https://www.youtube.com/watch?v=dQw4w9WgXcQ
t.Run(tc.name, func(t *testing.T) {
input := strings.NewReader(tc.input)
var output bytes.Buffer
err := RemoveParamsFromYoutubeURLs(input, &output)
err := RemoveYoutubeParams(input, &output)
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
Expand Down

0 comments on commit fa05131

Please sign in to comment.