api/time_controller.go

Summary

Maintainability
A
35 mins
Test Coverage

Method TimeController.serve has 5 return statements (exceeds 4 allowed).
Open

func (controller *TimeController) serve(response http.ResponseWriter, request *http.Request, requestData *RequestData) {
    switch {
    case request.Method == "GET":
        if requestData.Resource != "" {
            http.Error(response, "Invalid request", http.StatusBadRequest)
Severity: Major
Found in api/time_controller.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status