8000 Removed vestigial instanceof check. · johnrees/arangodb@09d5bdc · GitHub
[go: up one dir, main page]

Skip to content

Commit 09d5bdc

Browse files
committed
Removed vestigial instanceof check.
1 parent cc2ad9b commit 09d5bdc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

js/server/modules/org/arangodb/foxx/repository.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929

3030
var Model = require("org/arangodb/foxx/model").Model,
3131
_ = require("underscore"),
32-
arangodb = require("org/arangodb"),
33-
ArangoError = arangodb.ArangoError,
34-
ArangoCollection = arangodb.ArangoCollection,
35-
errors = arangodb.errors,
3632
extend = require('extendible'),
3733
EventEmitter = require('events').EventEmitter,
3834
util = require('util');
@@ -90,12 +86,6 @@ var EVENTS = [
9086
////////////////////////////////////////////////////////////////////////////////
9187

9288
function Repository(collection, opts) {
93-
if (!(collection instanceof ArangoCollection)) {
94-
throw new ArangoError({
95-
errorNum: errors.ERROR_BAD_PARAMETER.code,
96-
errorMessage: "Collection parameter has to be of type ArangoCollection"
97-
});
98-
}
9989
this.options = opts || {};
10090

10191
// ------------------------------------- 38B6 ----------------------------------------

0 commit comments

Comments
 (0)
0