inklabs/rangedb

View on GitHub
pkg/rangedbapi/api.go

Summary

Maintainability
A
35 mins
Test Coverage
A
98%

Showing 1 of 1 total issue

Method api.saveEvents has 5 return statements (exceeds 4 allowed).
Open

func (a *api) saveEvents(w http.ResponseWriter, r *http.Request) {
if r.Header.Get("Content-Type") != "application/json" {
http.Error(w, "invalid content type", http.StatusBadRequest)
return
}
Severity: Major
Found in pkg/rangedbapi/api.go - About 35 mins to fix
    Category
    Status