Fix various typos (#416)

Fix various typos found via `codespell -q 3 -S vendor -L pullrequest,pullrequests`
This commit is contained in:
luzpaz
2021-10-08 12:35:56 -04:00
committed by GitHub
parent 3254a7ca00
commit 9b687a923e
28 changed files with 52 additions and 52 deletions

View File

@@ -42,14 +42,14 @@ func NewClient(c *cli.Context) (woodpecker.Client, error) {
}
config := new(oauth2.Config)
auther := config.Client(
client := config.Client(
oauth2.NoContext,
&oauth2.Token{
AccessToken: token,
},
)
trans, _ := auther.Transport.(*oauth2.Transport)
trans, _ := client.Transport.(*oauth2.Transport)
if len(socks) != 0 && !socksoff {
dialer, err := proxy.SOCKS5("tcp", socks, nil, proxy.Direct)
@@ -68,7 +68,7 @@ func NewClient(c *cli.Context) (woodpecker.Client, error) {
}
}
return woodpecker.NewClient(server, auther), nil
return woodpecker.NewClient(server, client), nil
}
// ParseRepo parses the repository owner and name from a string.