Skip to content

Commit 414e6be

Browse files
committed
Remove the unused return value in MixedBulkWriteOperation.BulkWriteTracker.attachNew
1 parent 3cc4591 commit 414e6be

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

driver-core/src/main/com/mongodb/internal/operation/MixedBulkWriteOperation.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,8 @@ static void attachNew(final RetryState retryState, final boolean retry) {
428428
retryState.attach(AttachmentKeys.bulkWriteTracker(), new BulkWriteTracker(retry, null), false);
429429
}
430430

431-
static BulkWriteTracker attachNew(final RetryState retryState, final BulkWriteBatch batch) {
432-
BulkWriteTracker tracker = new BulkWriteTracker(batch.getRetryWrites(), batch);
433-
attach(retryState, tracker);
434-
return tracker;
431+
static void attachNew(final RetryState retryState, final BulkWriteBatch batch) {
432+
attach(retryState, new BulkWriteTracker(batch.getRetryWrites(), batch));
435433
}
436434

437435
static BulkWriteTracker attachNext(final RetryState retryState, final BulkWriteBatch batch) {

0 commit comments

Comments
 (0)