Skip to content

Commit

Permalink
Remove unused code from previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Jun 21, 2023
1 parent d169712 commit f347061
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function Postgres(a, b) {

return sql

function Sql(handler, instant) {
function Sql(handler) {
handler.debug = options.debug

Object.entries(options.types).reduce((acc, [name, type]) => {
Expand Down Expand Up @@ -112,7 +112,6 @@ function Postgres(a, b) {
: typeof strings === 'string' && !args.length
? new Identifier(options.transform.column.to ? options.transform.column.to(strings) : strings)
: new Builder(strings, args)
instant && query instanceof Query && query.execute()
return query
}

Expand All @@ -123,7 +122,6 @@ function Postgres(a, b) {
...options,
simple: 'simple' in options ? options.simple : args.length === 0
})
instant && query.execute()
return query
}

Expand All @@ -141,7 +139,6 @@ function Postgres(a, b) {
...options,
simple: 'simple' in options ? options.simple : args.length === 0
})
instant && query.execute()
return query
}
}
Expand Down

0 comments on commit f347061

Please sign in to comment.