From 9236202115c803c1c362e1b692214b2fe317d8cd Mon Sep 17 00:00:00 2001 From: Theodor Diaconu Date: Mon, 15 Jan 2018 05:48:11 +0200 Subject: [PATCH] Fixes #9531 - removing unnecessary check for Mongo.Collection (#9537) --- packages/mongo/collection.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/mongo/collection.js b/packages/mongo/collection.js index 0585b4bca7..016b5bfe3e 100644 --- a/packages/mongo/collection.js +++ b/packages/mongo/collection.js @@ -26,9 +26,6 @@ The default id generation technique is `'STRING'`. */ Mongo.Collection = class Collection { constructor(name, options) { - if (! (this instanceof Mongo.Collection)) - throw new Error('use "new" to construct a Mongo.Collection'); - if (!name && (name !== null)) { Meteor._debug("Warning: creating anonymous collection. It will not be " + "saved or synchronized over the network. (Pass null for " +