forked from nite/go-igdb
u
This commit is contained in:
@@ -2,7 +2,6 @@ package endpoint
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
pb "github.com/bestnite/go-igdb/proto"
|
||||
@@ -36,9 +35,5 @@ func (a *Companies) Query(ctx context.Context, query string) ([]*pb.Company, err
|
||||
return nil, fmt.Errorf("failed to unmarshal: %w", err)
|
||||
}
|
||||
|
||||
if len(data.Companies) == 0 {
|
||||
return nil, errors.New("no results")
|
||||
}
|
||||
|
||||
return data.Companies, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user