File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function isEmptyObjectOrNull(obj) {
39
39
}
40
40
41
41
function isObject ( obj ) {
42
- return typeof obj === 'object' && ! Array . isArray ( obj ) && Boolean ( obj ) ;
42
+ return typeof obj === 'object' && ! Array . isArray ( obj ) && obj !== null ;
43
43
}
44
44
45
45
/**
@@ -79,7 +79,7 @@ function assertCypherStatement(obj) {
79
79
}
80
80
81
81
function assertQueryParameters ( obj ) {
82
- if ( ! isObject ( obj ) && Boolean ( obj ) ) {
82
+ if ( ! isObject ( obj ) ) {
83
83
// objects created with `Object.create(null)` do not have a constructor property
84
84
const constructor = obj . constructor ? ' ' + obj . constructor . name : '' ;
85
85
throw new TypeError ( `Query parameters are expected to either be undefined/null or an object, given:${ constructor } ${ obj } ` ) ;
You can’t perform that action at this time.
0 commit comments