Skip to content

Commit 998b614

Browse files
committed
[tests] More cleanup
1 parent 0f9528f commit 998b614

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/test/java/org/mybatis/spring/asyncsynchronization/AsyncAfterCompletionHelper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ public Object invoke(final Object proxy, final Method method, final Object[] arg
6666
thread.join();
6767
if (exceptionSet.isEmpty()) {
6868
return retValSet.iterator().next();
69-
} else {
70-
throw exceptionSet.iterator().next();
7169
}
70+
throw exceptionSet.iterator().next();
7271
}
7372

7473
}

src/test/java/org/mybatis/spring/submitted/xa/UserServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void saveWithFailure(User user) {
4444

4545
@Override
4646
public boolean checkUserExists(int id) {
47-
if ((userMapperMaster.select(id) != null) || (userMapperSlave.select(id) != null)) {
47+
if (userMapperMaster.select(id) != null || userMapperSlave.select(id) != null) {
4848
return true;
4949
}
5050
return false;

0 commit comments

Comments
 (0)