Skip to content

Commit 424e1d5

Browse files
committed
Implement the change similar to the one proposed in a different PR
See mongodb#1203 (comment) JAVA-5139
1 parent 1241d27 commit 424e1d5

File tree

1 file changed

+1
-2
lines changed
  • driver-sync/src/main/com/mongodb/client/internal

1 file changed

+1
-2
lines changed

driver-sync/src/main/com/mongodb/client/internal/Crypt.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,7 @@ private void decryptKeys(final MongoCryptContext cryptContext) {
351351
cryptContext.completeKeyDecryptors();
352352
} catch (Throwable t) {
353353
throw translateInterruptedException(t, "Interrupted while doing IO")
354-
.<MongoException>map(Function.identity())
355-
.orElseGet(() -> wrapInMongoException(t));
354+
.orElseThrow(() -> wrapInMongoException(t));
356355
}
357356
}
358357

0 commit comments

Comments
 (0)