Skip to content

Commit ed9a00a

Browse files
committed
Please eslint
1 parent 9f828a4 commit ed9a00a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ function Postgres(a, b) {
159159
let c
160160
, x
161161

162-
while ((x = queries.peek()) && (c = x.query && x.query.connection || getConnection(queries.peek().fn)) && queries.shift()) {
162+
while (
163+
(x = queries.peek())
164+
&& (c = x.query && x.query.connection || getConnection(queries.peek().fn))
165+
&& queries.shift()
166+
) {
163167
x.fn
164168
? transaction(x, c)
165169
: send(c, x.query, x.xs, x.args)

tests/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,6 @@ t('Copy read works', async() => {
13451345
await sql`insert into test select * from generate_series(1,10)`
13461346
const readable = sql`copy test to stdout`.readable()
13471347
readable.on('data', x => result.push(x))
1348-
readable.on('error', x => p('error', x))
13491348
await new Promise(r => readable.on('end', r))
13501349

13511350
return [
@@ -1375,7 +1374,7 @@ t('Copy write works', async() => {
13751374
t('Copy write as first works', async() => {
13761375
await sql`create table test (x int)`
13771376
const first = postgres(options)
1378-
const writable = first`COPY test FROM STDIN WITH(FORMAT csv, HEADER false, DELIMITER ',')`.writable();
1377+
const writable = first`COPY test FROM STDIN WITH(FORMAT csv, HEADER false, DELIMITER ',')`.writable()
13791378
writable.write('1\n')
13801379
writable.write('1\n')
13811380
writable.end()

0 commit comments

Comments
 (0)