diff options
author | Joe Chen <jc@unknwon.io> | 2023-02-02 21:25:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 21:25:25 +0800 |
commit | c53a1998c589a544b25d53f6e6fdf0f24a4df25b (patch) | |
tree | 1c3c9d693ba551eecfbc535be942e40b5acf9cf7 /internal/auth/github/provider.go | |
parent | 614382fec0ba05149785539ab93560d4d42c194d (diff) |
all: replace `interface{}` with `any` (#7330)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/auth/github/provider.go')
-rw-r--r-- | internal/auth/github/provider.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/auth/github/provider.go b/internal/auth/github/provider.go index eab9aa58..4d15c6a4 100644 --- a/internal/auth/github/provider.go +++ b/internal/auth/github/provider.go @@ -26,7 +26,7 @@ func (p *Provider) Authenticate(login, password string) (*auth.ExternalAccount, fullname, email, website, location, err := p.config.doAuth(login, password) if err != nil { if strings.Contains(err.Error(), "401") { - return nil, auth.ErrBadCredentials{Args: map[string]interface{}{"login": login}} + return nil, auth.ErrBadCredentials{Args: map[string]any{"login": login}} } return nil, err } @@ -40,7 +40,7 @@ func (p *Provider) Authenticate(login, password string) (*auth.ExternalAccount, }, nil } -func (p *Provider) Config() interface{} { +func (p *Provider) Config() any { return p.config } |