Skip to content

Commit

Permalink
add type check (resolve comments)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamRasal committed Dec 12, 2024
1 parent 8b05d5c commit 8db1c2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/reporting/trackers/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ func New(options *Options) (*Integration, error) {
tc := oauth2.NewClient(ctx, ts)

if options.HttpClient != nil && options.HttpClient.HTTPClient != nil {
tc.Transport.(*http.Transport).Proxy = options.HttpClient.HTTPClient.Transport.(*http.Transport).Proxy
if tcTransport, ok := tc.Transport.(*http.Transport); ok {
tcTransport.Proxy = options.HttpClient.HTTPClient.Transport.(*http.Transport).Proxy
}
}

client := github.NewClient(tc)
Expand Down

0 comments on commit 8db1c2e

Please sign in to comment.