Skip to content

Commit

Permalink
fix: style check
Browse files Browse the repository at this point in the history
  • Loading branch information
CorvusYe committed Jan 16, 2024
1 parent bd690d6 commit be265bd
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 be265bd

Please sign in to comment.