Removing non-required initial Client and Transport values.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user