Skip to content

Commit b9ba0fc

Browse files
committed
Polishing
1 parent 4a319c3 commit b9ba0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-tx/src/main/java/org/springframework/dao/support/DataAccessUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static <T> T singleResult(@Nullable Stream<T> results) throws IncorrectRe
8181
if (resultList.size() > 1) {
8282
throw new IncorrectResultSizeDataAccessException(1);
8383
}
84-
return resultList.isEmpty() ? null : resultList.get(0);
84+
return (!resultList.isEmpty() ? resultList.get(0) : null);
8585
}
8686
}
8787

0 commit comments

Comments
 (0)