portainer/portainer

View on GitHub
api/http/handler/users/user_inspect_me.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Handler.userInspectMe has 5 return statements (exceeds 4 allowed).
Open

func (handler *Handler) userInspectMe(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
    tokenData, err := security.RetrieveTokenData(r)
    if err != nil {
        return httperror.InternalServerError("Unable to retrieve user authentication token", err)
    }
Severity: Major
Found in api/http/handler/users/user_inspect_me.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status