0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-04-01 02:42:23 -05: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

View file

@ -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]) {