Skip to content

Commit

Permalink
Don't whack the error reference
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Sep 12, 2024
1 parent 9cfb6f5 commit 42a9058
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/restorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ func (r *restorer) commitStream(ctx context.Context, bulkImportClient v1.Experim
canceled, cancelErr := isCanceledError(ctx.Err(), err)
unknown := !retryable && !conflict && !canceled && err != nil

intExpectedLoaded, err := safecast.ToInt64(expectedLoaded)
if err != nil {
return err
intExpectedLoaded, castErr := safecast.ToInt64(expectedLoaded)
if castErr != nil {
return castErr
}

intNumBatches := int64(len(batchesToBeCommitted))
Expand Down

0 comments on commit 42a9058

Please sign in to comment.