mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
minor improvement
This commit is contained in:
@@ -255,7 +255,8 @@ ConstraintSolver.Resolver.prototype._stateNeighbors =
|
||||
};
|
||||
|
||||
if (_.isEmpty(candidateVersions)) {
|
||||
var uv = self.unitsVersions[candidateName][0];
|
||||
var uv = self.unitsVersions[candidateName] &&
|
||||
self.unitsVersions[candidateName][0];
|
||||
|
||||
if (! uv)
|
||||
return { success: false, failureMsg: "Cannot find anything about package -- " + candidateName, conflictingUnit: candidateName };
|
||||
|
||||
Reference in New Issue
Block a user