mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Small clean ups
This commit is contained in:
@@ -92,8 +92,8 @@ ConstraintSolver.ConstraintsList.prototype.forPackage = function (name, iter) {
|
||||
// doesn't break on the false return value
|
||||
ConstraintSolver.ConstraintsList.prototype.each = function (iter) {
|
||||
var self = this;
|
||||
mori.each(self.byName, function (coll) {
|
||||
mori.each(mori.last(coll), function (exactInexactColl) {
|
||||
mori.each(self.byName, function (nameAndColl) {
|
||||
mori.each(mori.last(nameAndColl), function (exactInexactColl) {
|
||||
mori.each(mori.last(exactInexactColl), function (c) {
|
||||
iter(mori.last(c));
|
||||
});
|
||||
@@ -213,7 +213,7 @@ ConstraintSolver.ConstraintsList.prototype.edgeMatchingVersionsFor =
|
||||
// there is some exact constraint, the choice is obvious
|
||||
if (exact) {
|
||||
var uv = exact.getSatisfyingUnitVersion(resolver);
|
||||
if (_.isEmpty(self.violatedConstraints(uv)))
|
||||
if (uv && _.isEmpty(self.violatedConstraints(uv)))
|
||||
return { earliest: uv, latest: uv };
|
||||
else
|
||||
return { earliest: null, latest: null };
|
||||
|
||||
Reference in New Issue
Block a user