Skip to content

Commit e96a77b

Browse files
authored
remove the local variable and return the result directly
1 parent 79513eb commit e96a77b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/examples/springbatch/cursor/SpringBatchCursorTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ private long upperCaseRowCount() throws Exception {
8080
.build()
8181
.render(RenderingStrategy.MYBATIS3);
8282

83-
long count = personMapper.count(selectStatement);
84-
return count;
83+
return personMapper.count(selectStatement);
8584
}
8685
}
8786
}

0 commit comments

Comments
 (0)