Skip to content

Commit abbbc69

Browse files
committed
Polishing.
Simplify code. See #3649 Original pull request: #3650
1 parent fa17008 commit abbbc69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/HqlQueryTransformer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private static boolean isSubquery(ParserRuleContext ctx) {
106106
} else if (ctx instanceof HqlParser.UpdateStatementContext) {
107107
return false;
108108
} else {
109-
return ctx.getParent() != null ? isSubquery(ctx.getParent()) : false;
109+
return ctx.getParent() != null && isSubquery(ctx.getParent());
110110
}
111111
}
112112

0 commit comments

Comments
 (0)