Skip to content

Commit

Permalink
[chore] remove unnecessary local variable, can check directly error.As (
Browse files Browse the repository at this point in the history
#9125)

Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Dec 15, 2023
1 parent 256efb8 commit eb79866
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exporter/exporterhelper/retry_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ func (rs *retrySender) send(ctx context.Context, req Request) error {
}

throttleErr := throttleRetry{}
isThrottle := errors.As(err, &throttleErr)
if isThrottle {
if errors.As(err, &throttleErr) {
backoffDelay = max(backoffDelay, throttleErr.delay)
}

Expand Down

0 comments on commit eb79866

Please sign in to comment.