Skip to content

Commit

Permalink
fix(search): remove panic
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed May 26, 2024
1 parent 1f8fad3 commit 9f2b02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/youtube/search/suggestions/search_suggestion.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func SearchSuggestions(query string) (suggestions []string, err error) {
resp, err := http.Get("https://suggestqueries.google.com/complete/search?client=firefox&ds=yt&q=" +
url.QueryEscape(query))
if err != nil {
panic(err)
return nil, err
}

var results []any
Expand Down

0 comments on commit 9f2b02a

Please sign in to comment.