diff --git a/packages/minimongo/common.js b/packages/minimongo/common.js index 509b0ba719..8697febc8b 100644 --- a/packages/minimongo/common.js +++ b/packages/minimongo/common.js @@ -308,7 +308,7 @@ const VALUE_OPERATORS = { }, $near(operand, valueSelector, matcher, isRoot) { if (!isRoot) - throw Error("$near can't be inside another $ operator"); + throw Error('$near can\'t be inside another $ operator'); matcher._hasGeoQuery = true; @@ -549,7 +549,7 @@ function distanceCoordinatePairs(a, b) { // for equality with that thing. export function equalityElementMatcher(elementSelector) { if (isOperatorObject(elementSelector)) - throw Error("Can't create equalityValueSelector for operator object"); + throw Error('Can\'t create equalityValueSelector for operator object'); // Special-case: null and undefined are equal (if you got undefined in there // somewhere, or if you got it due to some branch being non-existent in the diff --git a/packages/minimongo/local_collection.js b/packages/minimongo/local_collection.js index b2e29abd85..b29ab44a5b 100644 --- a/packages/minimongo/local_collection.js +++ b/packages/minimongo/local_collection.js @@ -717,7 +717,7 @@ LocalCollection.wrapTransform = transform => { if (transformed.hasOwnProperty('_id')) { if (!EJSON.equals(transformed._id, id)) - throw new Error("transformed document can't have different _id"); + throw new Error('transformed document can\'t have different _id'); } else { transformed._id = id; }