Skip to content

Commit d7bad5b

Browse files
committed
add comment
1 parent ddb4d59 commit d7bad5b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/api/api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ func buildTransport(opts ClientOpts, flags *Flags) http.RoundTripper {
110110
transport = tp
111111
}
112112

113+
// not we do not fail here if requireAccessToken is true, because that would
114+
// mean returning an error on construction which we want to avoid for now
115+
// TODO(burmudar): allow returning of an error upon client construction
113116
if opts.AccessToken == "" && opts.OAuthToken != nil {
114117
transport = oauth.NewTransport(transport, opts.OAuthToken)
115118
}

0 commit comments

Comments
 (0)