File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
js/server/modules/org/arangodb/foxx Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 29
29
30
30
var Model = require ( "org/arangodb/foxx/model" ) . Model ,
31
31
_ = require ( "underscore" ) ,
32
- arangodb = require ( "org/arangodb" ) ,
33
- ArangoError = arangodb . ArangoError ,
34
- ArangoCollection = arangodb . ArangoCollection ,
35
- errors = arangodb . errors ,
36
32
extend = require ( 'extendible' ) ,
37
33
EventEmitter = require ( 'events' ) . EventEmitter ,
38
34
util = require ( 'util' ) ;
@@ -90,12 +86,6 @@ var EVENTS = [
90
86
////////////////////////////////////////////////////////////////////////////////
91
87
92
88
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
- }
99
89
this . options = opts || { } ;
100
90
101
91
// -------------------------------------
38B6
----------------------------------------
You can’t perform that action at this time.
0 commit comments