shorter getTeasers

This commit is contained in:
barisusakli
2014-11-18 22:19:17 -05:00
parent 5292a47a96
commit 871cf8a3b7
2 changed files with 8 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ var async = require('async'),
module.exports = function(Posts) {
Posts.getPostSummaryByPids = function(pids, uid, options, callback) {
if (!pids || !Array.isArray(pids) || !pids.length) {
if (!Array.isArray(pids) || !pids.length) {
return callback(null, []);
}