streamdal/go-sdk

View on GitHub
hostfunc/httprequest.go

Summary

Maintainability
A
40 mins
Test Coverage

Method HostFunc.HTTPRequest has 6 return statements (exceeds 4 allowed).
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)
Severity: Major
Found in hostfunc/httprequest.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status