yasshi2525/RushHour

View on GitHub
auth/github.go

Summary

Maintainability
A
40 mins
Test Coverage
F
5%

Method Auther.GetGitHubOAuthInfo has 6 return statements (exceeds 4 allowed).
Open

func (a *Auther) GetGitHubOAuthInfo(resState string, code string) (*OAuthInfo, error) {
    if resState != a.state {
        return nil, fmt.Errorf("invalid state")
    }
    ctx := context.Background()
Severity: Major
Found in auth/github.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status