clean up handler folder

This commit is contained in:
sentriz
2019-07-29 12:50:46 +01:00
parent d02ace460d
commit c514f83cf7

View File

@@ -159,8 +159,7 @@ func (c *Controller) ServeSearchTwo(r *http.Request) *spec.Response {
if query == "" {
return spec.NewError(10, "please provide a `query` parameter")
}
query = fmt.Sprintf("%%%s%%",
strings.TrimSuffix(query, "*"))
query = fmt.Sprintf("%%%s%%", strings.TrimSuffix(query, "*"))
results := &spec.SearchResultTwo{}
//
// search "artists"