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) {
3939}
4040
4141function isObject ( obj ) {
42- return typeof obj === 'object' && ! Array . isArray ( obj ) && Boolean ( obj ) ;
42+ return typeof obj === 'object' && ! Array . isArray ( obj ) && obj !== null ;
4343}
4444
4545/**
@@ -79,7 +79,7 @@ function assertCypherStatement(obj) {
7979}
8080
8181function assertQueryParameters ( obj ) {
82- if ( ! isObject ( obj ) && Boolean ( obj ) ) {
82+ if ( ! isObject ( obj ) ) {
8383 // objects created with `Object.create(null)` do not have a constructor property
8484 const constructor = obj . constructor ? ' ' + obj . constructor . name : '' ;
8585 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