Skip to content

Commit 58c9e42

Browse files
committed
Unwrap needless object
1 parent 1346107 commit 58c9e42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default function Postgres(url, options) {
166166
!options.fifo && !reserve && connection && connections.push(connection)
167167
connection && (connection.active = !(options.onconnect && !connection.ready))
168168
return options.onconnect && !connection.ready
169-
? instance({ fn: options.onconnect }, connection)
169+
? instance(options.onconnect, connection)
170170
: connection
171171
}
172172

@@ -178,7 +178,7 @@ export default function Postgres(url, options) {
178178
return connection
179179
}
180180

181-
function instance({ fn }, connection) {
181+
function instance(fn, connection) {
182182
let queries = 0
183183
addTypes(scoped, connection)
184184
const container = fn(scoped)

0 commit comments

Comments
 (0)