Skip to content

Commit

Permalink
refactor: use handler function ref directly
Browse files Browse the repository at this point in the history
  • Loading branch information
HandOfGod94 committed Oct 21, 2023
1 parent a27bc6a commit f97d5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/jira_changelog/jira/auth/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (a *oauthAuthenticator) exchangeCode(ctx context.Context, args ...any) erro
// spin up server for callback from RedirectURL and shut it down once we get response
a.callback = make(chan *oauth2.Token)
mux := http.NewServeMux()
mux.HandleFunc("/gh-jira-changelog/oauth/callback", http.HandlerFunc(a.callbackHandler))
mux.HandleFunc("/gh-jira-changelog/oauth/callback", a.callbackHandler)
svr := http.Server{Addr: "127.0.0.1:9999", Handler: mux}
go func() { svr.ListenAndServe() }()

Expand Down

0 comments on commit f97d5f8

Please sign in to comment.