Skip to content

Commit 639b102

Browse files
committed
no message
1 parent ccd9b23 commit 639b102

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

framework/src/main/java/org/tron/core/services/http/GetBlockByLatestNumServlet.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
4444
}
4545
}
4646

47-
private void outWrite(long getNum, boolean visible, HttpServletResponse response) throws Exception {
47+
private void outWrite(long getNum, boolean visible, HttpServletResponse response)
48+
throws Exception {
4849
if (getNum > 0 && getNum < BLOCK_LIMIT_NUM) {
4950
BlockList reply = wallet.getBlockByLatestNum(getNum);
5051
if (reply != null) {
5152
response.getWriter().println(Util.printBlockList(reply, visible));
5253
return;
53-
}
54-
else {
54+
} else {
5555
response.getWriter().println("{}");
5656
}
57-
}else {
57+
} else {
5858
response.getWriter().println("{}");
5959
}
6060
}

framework/src/main/java/org/tron/core/services/http/GetBlockByLimitNextServlet.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
4646
}
4747
}
4848

49-
private void outWrite(long endNum, long startNum, boolean visible, HttpServletResponse response) throws Exception {
49+
private void outWrite(long endNum, long startNum, boolean visible, HttpServletResponse response)
50+
throws Exception {
5051
if (endNum > 0 && endNum > startNum && endNum - startNum <= BLOCK_LIMIT_NUM) {
5152
BlockList reply = wallet.getBlocksByLimitNext(startNum, endNum - startNum);
5253
if (reply != null) {

0 commit comments

Comments
 (0)