ESlint no-unneeded-ternary

and no-extend-native, no-sequences
This commit is contained in:
Peter Jaszkowiak
2017-02-18 12:59:46 -07:00
parent 64a6322002
commit c4bdb72941
15 changed files with 24 additions and 23 deletions

View File

@@ -138,7 +138,7 @@ module.exports = function (db, module) {
}
db.collection('objects').count(query, function (err, count) {
callback(err, count ? count : 0);
callback(err, count || 0);
});
};
@@ -148,7 +148,7 @@ module.exports = function (db, module) {
}
db.collection('objects').count({ _key: key }, function (err, count) {
count = parseInt(count, 10);
callback(err, count ? count : 0);
callback(err, count || 0);
});
};