otiai10/amesh-bot

View on GitHub
controllers/oauth.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Controller.OAuth has 5 return statements (exceeds 4 allowed).
Open

func (c *Controller) OAuth(w http.ResponseWriter, req *http.Request) {
    code := req.URL.Query().Get("code")
    if code == "" {
        w.WriteHeader(http.StatusBadRequest)
        return
Severity: Major
Found in controllers/oauth.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status