1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

refactor: restore previous package check logic

This commit is contained in:
Juan Picado @jotadeveloper 2017-08-06 22:41:14 +02:00
parent 88a29f5928
commit ba99fd5ba1
No known key found for this signature in database
GPG Key ID: 18AC54485952D158

@ -467,7 +467,7 @@ class Storage {
const getPackage = function(i) {
self.localStorage.getPackageMetadata(locals[i], function(err, info) {
if (_.isNil(err) === false) {
if (_.isNil(err)) {
const latest = info['dist-tags'].latest;
if (latest && info.versions[latest]) {