wisedog/ladybug

View on GitHub
controllers/users.go

Summary

Maintainability
A
35 mins
Test Coverage

Function UserUpdateProfile has 5 return statements (exceeds 4 allowed).
Open

func UserUpdateProfile(c *interfacer.AppContext, w http.ResponseWriter, r *http.Request) error {
    vars := mux.Vars(r)
    id := vars["id"]
    idInt, _ := strconv.Atoi(id)

Severity: Major
Found in controllers/users.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status