waku-org/go-waku

View on GitHub
cmd/waku/server/rest/lightpush_rest.go

Summary

Maintainability
A
35 mins
Test Coverage
F
49%

Method LightpushService.postMessagev1 has 5 return statements (exceeds 4 allowed).
Open

func (serv *LightpushService) postMessagev1(w http.ResponseWriter, req *http.Request) {
    request := &lightpushRequest{}
    decoder := json.NewDecoder(req.Body)
    if err := decoder.Decode(request); err != nil {
        w.WriteHeader(http.StatusBadRequest)
Severity: Major
Found in cmd/waku/server/rest/lightpush_rest.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status