Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 4103428

Browse files
committed
more terse
1 parent bb62fb8 commit 4103428

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/davidkarlsen/commonstransaction/spring/CommonsTransactionPlatformTransactionManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ protected boolean isExistingTransaction( Object transaction )
6060
{
6161
try
6262
{
63-
boolean noTransaction = fileResourceManager.getTransactionState( transaction ) == FileResourceManager.STATUS_NO_TRANSACTION;
64-
return !noTransaction;
63+
return fileResourceManager.getTransactionState( transaction ) != FileResourceManager.STATUS_NO_TRANSACTION;
6564
}
6665
catch ( ResourceManagerException e )
6766
{

0 commit comments

Comments
 (0)