Skip to content

Commit

Permalink
fix bearer token judge condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yndu13 authored and peze committed Apr 12, 2022
1 parent f1e3db0 commit 5dc8bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ func (client *Client) DoRequest(params *Params, request *OpenApiRequest, runtime
return _result, _err
}

if !tea.BoolValue(util.EqualString(authType, tea.String("bearer"))) {
if tea.BoolValue(util.EqualString(authType, tea.String("bearer"))) {
bearerToken, _err := client.GetBearerToken()
if _err != nil {
return _result, _err
Expand Down

0 comments on commit 5dc8bbe

Please sign in to comment.