xmidt-org/wrp-go

View on GitHub
wrphttp/decoders.go

Summary

Maintainability
A
35 mins
Test Coverage

Function DecodeRequest has 5 return statements (exceeds 4 allowed).
Open

func DecodeRequest(r *http.Request, _ any) (*http.Request, error) {

    if _, ok := wrpcontext.GetMessage(r.Context()); ok {
        // Context already contains a message, so just return the original request
        return r, nil
Severity: Major
Found in wrphttp/decoders.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status