Fix if there's no bins

This commit is contained in:
Remy Sharp 2014-10-17 17:27:13 +01:00
parent d85bf7972b
commit e2fd01d8d4

View File

@ -29,9 +29,7 @@ module.exports = utils.inherit(Object, {
if (err) {
return fn(err);
}
if (results.length === 1) {
results[0].latest = true;
} else {
if (results.length > 1) {
results[0].latest = false;
}