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:
parent
8086c6f0bf
commit
86394b25ee
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ Storage.prototype.get_local = function(callback) {
|
||||||
self.local.get_package(locals[i], function(err, info) {
|
self.local.get_package(locals[i], function(err, info) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
var latest = info['dist-tags'].latest;
|
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) {
|
if (i >= locals.length - 1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue