forked from nite/go-igdb
u
This commit is contained in:
@@ -35,9 +35,5 @@ func (a *AgeRatingCategories) Query(ctx context.Context, query string) ([]*pb.Ag
|
||||
return nil, fmt.Errorf("failed to unmarshal: %w", err)
|
||||
}
|
||||
|
||||
if len(data.Ageratingcategories) == 0 {
|
||||
return nil, fmt.Errorf("no results: %s", query)
|
||||
}
|
||||
|
||||
return data.Ageratingcategories, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user