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:
parent
88a29f5928
commit
ba99fd5ba1
@ -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]) {
|
||||
|
Loading…
Reference in New Issue
Block a user