yasshi2525/RushHour

View on GitHub
auth/twitter.go

Summary

Maintainability
A
35 mins
Test Coverage
F
5%

Method Auther.GetTwitterOAuthInfo has 5 return statements (exceeds 4 allowed).
Open

func (a *Auther) GetTwitterOAuthInfo(tmpCred *oauth.Credentials, tmpSecret string) (*OAuthInfo, error) {
    cred, values, err := twitterClient.RequestToken(&http.Client{}, tmpCred, tmpSecret)
    if err != nil {
        return nil, err
    }
Severity: Major
Found in auth/twitter.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status