From 7125d902d0384c44b7cb95cc93ec8d63a7d219ed Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 21 May 2015 13:48:03 -0400 Subject: [PATCH] prettifying things --- src/controllers/admin.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/controllers/admin.js b/src/controllers/admin.js index 926e30d7e1..1df316267a 100644 --- a/src/controllers/admin.js +++ b/src/controllers/admin.js @@ -154,12 +154,8 @@ adminController.categories.getAll = function(req, res, next) { disabled = []; async.waterfall([ - function(next) { - db.getSortedSetRange('categories:cid', 0, -1, next); - }, - function(cids, next) { - categories.getCategoriesData(cids, next); - }, + async.apply(db.getSortedSetRange, 'categories:cid', 0, -1), + async.apply(categories.getCategoriesData), function(categories, next) { plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categories}, next); }