Check for Stream parameter usage (#174)

* check for stream:true usage

* lint
This commit is contained in:
sashabaranov
2023-03-18 19:31:54 +04:00
committed by GitHub
parent 34f3a118df
commit a6b35c3ab5
6 changed files with 45 additions and 7 deletions

View File

@@ -19,11 +19,11 @@ type (
failingMarshaller struct{}
)
func (*failingMarshaller) marshal(value any) ([]byte, error) {
func (*failingMarshaller) marshal(_ any) ([]byte, error) {
return []byte{}, errTestMarshallerFailed
}
func (*failingRequestBuilder) build(ctx context.Context, method, url string, requset any) (*http.Request, error) {
func (*failingRequestBuilder) build(_ context.Context, _, _ string, _ any) (*http.Request, error) {
return nil, errTestRequestBuilderFailed
}