cmd/waku/server/rest/lightpush_rest.go
Method LightpushService.postMessagev1
has 5 return statements (exceeds 4 allowed). Open
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)