0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

undefined variable fix

This commit is contained in:
Alex Kocharin 2014-09-02 04:26:54 +04:00
parent 8086c6f0bf
commit 86394b25ee

View file

@ -426,7 +426,7 @@ Storage.prototype.get_local = function(callback) {
self.local.get_package(locals[i], function(err, info) {
if (!err) {
var latest = info['dist-tags'].latest;
packages.push(info.versions[latest]);
if (info.versions[latest]) packages.push(info.versions[latest]);
}
if (i >= locals.length - 1) {