Skip to content

Commit 4f5e2ee

Browse files
Tussle0410rstoyanchev
authored andcommitted
Remove thenReturn that fetches unused values
Closes gh-34883 Signed-off-by: ChanHyeongLee <[email protected]>
1 parent 263af04 commit 4f5e2ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-r2dbc/src/main/java/org/springframework/r2dbc/connection/R2dbcTransactionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ protected Mono<Void> doBegin(TransactionSynchronizationManager synchronizationMa
219219
if (txObject.isNewConnectionHolder()) {
220220
synchronizationManager.bindResource(obtainConnectionFactory(), txObject.getConnectionHolder());
221221
}
222-
}).thenReturn(con).onErrorResume(ex -> {
222+
}).onErrorResume(ex -> {
223223
if (txObject.isNewConnectionHolder()) {
224224
return ConnectionFactoryUtils.releaseConnection(con, obtainConnectionFactory())
225225
.doOnTerminate(() -> txObject.setConnectionHolder(null, false))

0 commit comments

Comments
 (0)