Skip to content

Commit adcf08a

Browse files
committed
default connection params to empty object
1 parent 40a634b commit adcf08a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ function ConnectionPool(adapter, connParams, options) {
1515
}
1616
EventEmitter.call(this)
1717

18-
options = options || {}
18+
options = options || {}
19+
connParams = connParams || {}
1920

2021
if (options.create || options.destroy) {
2122
throw new Error("Use onConnect/reset options instead of create/destroy.")

0 commit comments

Comments
 (0)