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
|
return nil, err
|
||||||
}
|
}
|
||||||
conf := &Config{
|
conf := &Config{
|
||||||
Client: http.DefaultClient,
|
opts: opts,
|
||||||
Transport: http.DefaultTransport,
|
authURL: aURL,
|
||||||
opts: opts,
|
tokenURL: tURL,
|
||||||
authURL: aURL,
|
|
||||||
tokenURL: tURL,
|
|
||||||
}
|
}
|
||||||
if err = conf.validate(); err != nil {
|
if err = conf.validate(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user