hostfunc/httprequest.go
Method HostFunc.HTTPRequest
has 6 return statements (exceeds 4 allowed). Open
Open
func (h *HostFunc) HTTPRequest(_ context.Context, module api.Module, ptr, length int32) uint64 {
request := &steps.HttpRequest{}
if err := helper.ReadRequestFromMemory(module, request, ptr, length); err != nil {
return httpRequestResponse(module, http.StatusInternalServerError, "unable to read HTTP request params: "+err.Error(), nil)