Skip to content

Commit

Permalink
last nit
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Oct 8, 2021
1 parent 4eca17c commit 0d6490d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woodpecker-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ const (
func main() {
// create an http client with oauth authentication.
config := new(oauth2.Config)
auther := config.Client(
authenticator := config.Client(
oauth2.NoContext,
&oauth2.Token{
AccessToken: token,
},
)

// create the woodpecker client with authenticator
client := woodpecker.NewClient(host, auther)
client := woodpecker.NewClient(host, authenticator)

// gets the current user
user, err := client.Self()
Expand Down

0 comments on commit 0d6490d

Please sign in to comment.