This commit is contained in:
2025-10-28 22:36:26 +11:00
parent b99d06a2de
commit 87afdc63b8
70 changed files with 0 additions and 280 deletions

View File

@@ -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
}