0
0
mirror of https://github.com/thegeeklab/drone-admin.git synced 2024-09-20 20:22:47 +02:00

fix spelling in code

This commit is contained in:
Robert Kaussow 2022-07-20 17:15:21 +02:00
parent 209ae081af
commit 65fbb83338
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -29,20 +29,20 @@ func New(server string, token string) (drone.Client, error) {
}
oauth := new(oauth2.Config)
auther := oauth.Client(
authenticator := oauth.Client(
context.Background(),
&oauth2.Token{
AccessToken: token,
},
)
auther.Timeout, _ = time.ParseDuration("60s")
authenticator.Timeout, _ = time.ParseDuration("60s")
trans, _ := auther.Transport.(*oauth2.Transport)
trans, _ := authenticator.Transport.(*oauth2.Transport)
trans.Base = &http.Transport{
TLSClientConfig: tlsConfig,
Proxy: http.ProxyFromEnvironment,
}
return drone.NewClient(s.String(), auther), nil
return drone.NewClient(s.String(), authenticator), nil
}