Skip to content

Commit f10c235

Browse files
committed
Fix if no options
1 parent 2021ead commit f10c235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ export default function Postgres(url, options) {
398398
}
399399
}
400400

401-
function parseOptions(uri, options) {
401+
function parseOptions(uri = {}, options) {
402402
const o = options || uri
403403
, env = process.env // eslint-disable-line
404404
, url = options ? Url.parse(uri, true) : { query: {}, pathname: '' }

0 commit comments

Comments
 (0)