chore: fix lint
This commit is contained in:
parent
b9a324ad9b
commit
b23a24bdca
1 changed files with 0 additions and 6 deletions
|
|
@ -4,7 +4,6 @@ import (
|
|||
"errors"
|
||||
"sync"
|
||||
|
||||
"dario.cat/mergo"
|
||||
"golang.org/x/oauth2"
|
||||
)
|
||||
|
||||
|
|
@ -57,8 +56,3 @@ func (ts *TokenSource) Token() (*oauth2.Token, error) {
|
|||
|
||||
return ts.token, nil
|
||||
}
|
||||
|
||||
// mergeToken updates a token while preventing wiping the refresh token
|
||||
func (ts *TokenSource) mergeToken(t *oauth2.Token) error {
|
||||
return mergo.Merge(ts.token, t, mergo.WithOverride)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue