yasshi2525/RushHour

View on GitHub
auth/google.go

Summary

Maintainability
A
45 mins
Test Coverage
F
5%

Method Auther.GetGoogleOAuthInfo has 7 return statements (exceeds 4 allowed).
Open

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

    There are no issues that match your filters.

    Category
    Status