_.unique -> _.uniq && _.pluck -> _.map

This commit is contained in:
spalger
2016-05-19 07:31:15 -07:00
parent d1e5940f73
commit bd93bc914c
3 changed files with 14 additions and 8 deletions

View File

@ -112,7 +112,7 @@ module.exports = {
snapshot: '_all'
})
.then(function (resp) {
return _.pluck(resp.snapshots, 'snapshot');
return _.map(resp.snapshots, 'snapshot');
}, function () {
return [];
})
@ -121,13 +121,13 @@ module.exports = {
repository: repo,
snapshot: snapshot
});
}, {concurrency: 1})
}, { concurrency: 1 })
.then(function () {
return client.snapshot.deleteRepository({
repository: repo
});
});
}, {concurrency: 1})
}, { concurrency: 1 })
]);
};