internal/validator/recommendation.go
Method Validator.GetRecommendation
has 5 return statements (exceeds 4 allowed). Open
Open
func (v *Validator) GetRecommendation(t string, id1, id2 int) (*model.Recommendation, int, error) {
if t != AnimeType && t != MangaType {
return nil, http.StatusBadRequest, errors.ErrInvalidType
}
if id1 <= 0 || id2 <= 0 {