Commit e56cee7f authored by Liang Ding's avatar Liang Ding

🎨 Cleanup code

parent 1ca38e69
...@@ -304,8 +304,7 @@ public class DataModelService { ...@@ -304,8 +304,7 @@ public class DataModelService {
try { try {
LOGGER.debug("Filling categories...."); LOGGER.debug("Filling categories....");
final int mostUsedCategoryDisplayCnt = Integer.MAX_VALUE; // XXX: preference instead final List<JSONObject> categories = categoryRepository.getMostUsedCategories(Integer.MAX_VALUE);
final List<JSONObject> categories = categoryRepository.getMostUsedCategories(mostUsedCategoryDisplayCnt);
dataModel.put(Category.CATEGORIES, categories); dataModel.put(Category.CATEGORIES, categories);
} catch (final RepositoryException e) { } catch (final RepositoryException e) {
LOGGER.log(Level.ERROR, "Fills categories failed", e); LOGGER.log(Level.ERROR, "Fills categories failed", e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment