Skip to content

Commit f347061

Browse files
committed
Remove unused code from previous version
1 parent d169712 commit f347061

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function Postgres(a, b) {
8383

8484
return sql
8585

86-
function Sql(handler, instant) {
86+
function Sql(handler) {
8787
handler.debug = options.debug
8888

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

@@ -123,7 +122,6 @@ function Postgres(a, b) {
123122
...options,
124123
simple: 'simple' in options ? options.simple : args.length === 0
125124
})
126-
instant && query.execute()
127125
return query
128126
}
129127

@@ -141,7 +139,6 @@ function Postgres(a, b) {
141139
...options,
142140
simple: 'simple' in options ? options.simple : args.length === 0
143141
})
144-
instant && query.execute()
145142
return query
146143
}
147144
}

0 commit comments

Comments
 (0)