Skip to content

Commit

Permalink
Merge pull request #284 from CorvusYe/master
Browse files Browse the repository at this point in the history
fix: style check
  • Loading branch information
wey-gu authored Jan 17, 2024
2 parents 334bb28 + be265bd commit 21bfd12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ private MethodModel createPageMethod(MethodModel methodModel, List<String> metho
MethodModel pageMethodModel = new MethodModel();
Annotation[][] parameterAnnotations = setParamAnnotations(parameterTypes, namespace,
methodName, pageMethodModel);
String pageParamName = getPageParamName(parameterAnnotations, pageParamIndex);
pageMethodModel.setParameterTypes(parameterTypes);
pageMethodModel.setId(pageMethodName);

Expand All @@ -324,6 +323,7 @@ private MethodModel createPageMethod(MethodModel methodModel, List<String> metho
pageMethodModel.setSpace(methodModel.getSpace());

String cql = methodModel.getText();
String pageParamName = getPageParamName(parameterAnnotations, pageParamIndex);
if (pageParamName != null) {
String format = "%s\t\tSKIP $%s.startRow LIMIT $%s.pageSize";
cql = String.format(format, cql, pageParamName, pageParamName);
Expand Down

0 comments on commit 21bfd12

Please sign in to comment.