Skip to content

Commit c1cbcc2

Browse files
chore: remove
1 parent 90a9898 commit c1cbcc2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/java/com/library/controller/admin/book/BookManagerController.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
4747
List<Book> bookList;
4848
try {
4949

50-
// ===== SEARCH MODE =====
5150
if (search != null && !search.trim().isEmpty()) {
5251

5352
bookList = bookDao.searchBookByCursor(search.trim(), cursor, limit);
@@ -61,9 +60,8 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
6160
request.getRequestDispatcher("/WEB-INF/views/admin/managerBook.jsp").forward(request, response);
6261
return;
6362
}
64-
// ===== NORMAL MODE (Không search) =====
63+
6564
bookList = bookDao.getBooksByCursor(cursor, limit);
66-
// Cursor mới (ID của dòng cuối cùng)
6765
int nextCursor = bookList.isEmpty() ? 0 : bookList.get(bookList.size() - 1).getBookID();
6866
request.setAttribute("bookList", bookList);
6967
request.setAttribute("nextCursor", nextCursor);

0 commit comments

Comments
 (0)