Skip to content

Commit

Permalink
Remove embedded nil error
Browse files Browse the repository at this point in the history
Signed-off-by: ayoyu <khaliayoub9@gmail.com>
  • Loading branch information
ayoyu committed Jun 2, 2024
1 parent a5b68c1 commit 786c8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scalers/ibmmq_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (s *IBMMQScaler) getQueueDepthViaHTTP(ctx context.Context) (int64, error) {
}

if response.CommandResponse == nil || len(response.CommandResponse) == 0 {
return 0, fmt.Errorf("failed to parse response from REST call: %w", err)
return 0, fmt.Errorf("failed to parse response from REST call")
}

if response.CommandResponse[0].Parameters == nil {
Expand Down

0 comments on commit 786c8bd

Please sign in to comment.