mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
Removing non-required initial Client and Transport values.
This commit is contained in:
parent
9d409b9dbd
commit
cd4a6ded37
@ -97,11 +97,9 @@ func NewConfig(opts *Options, authURL, tokenURL string) (*Config, error) {
|
||||
return nil, err
|
||||
}
|
||||
conf := &Config{
|
||||
Client: http.DefaultClient,
|
||||
Transport: http.DefaultTransport,
|
||||
opts: opts,
|
||||
authURL: aURL,
|
||||
tokenURL: tURL,
|
||||
opts: opts,
|
||||
authURL: aURL,
|
||||
tokenURL: tURL,
|
||||
}
|
||||
if err = conf.validate(); err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user