Skip to content

Commit 364c3eb

Browse files
Bas950porsager
authored andcommitted
chore: run lint
1 parent 36e4fa6 commit 364c3eb

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

cjs/src/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
735735
}
736736

737737
function addArrayType(oid, typarray) {
738-
if (!!options.parsers[typarray] && !!options.serializers[typarray]) return;
738+
if (!!options.parsers[typarray] && !!options.serializers[typarray]) return
739739
const parser = options.parsers[oid]
740740
options.shared.typeArrayMap[oid] = typarray
741741
options.parsers[typarray] = (xs) => arrayParser(xs, parser, typarray)

cjs/tests/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const crypto = require('crypto')
88
const postgres = require('../src/index.js')
99
const delay = ms => new Promise(r => setTimeout(r, ms))
1010

11-
const rel = x => require("path").join(__dirname, x)
11+
const rel = x => require('path').join(__dirname, x)
1212
const idle_timeout = 1
1313

1414
const login = {
@@ -137,10 +137,10 @@ t('Array of Date', async() => {
137137
return [now.getTime(), (await sql`select ${ sql.array([now, now, now]) } as x`)[0].x[2].getTime()]
138138
})
139139

140-
t("Array of Box", async () => [
140+
t('Array of Box', async() => [
141141
'(3,4),(1,2);(6,7),(4,5)',
142-
(await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(";")
143-
]);
142+
(await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(';')
143+
])
144144

145145
t('Nested array n2', async() =>
146146
['4', (await sql`select ${ sql.array([[1, 2], [3, 4]]) } as x`)[0].x[1][1]]

deno/src/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
739739
}
740740

741741
function addArrayType(oid, typarray) {
742-
if (!!options.parsers[typarray] && !!options.serializers[typarray]) return;
742+
if (!!options.parsers[typarray] && !!options.serializers[typarray]) return
743743
const parser = options.parsers[oid]
744744
options.shared.typeArrayMap[oid] = typarray
745745
options.parsers[typarray] = (xs) => arrayParser(xs, parser, typarray)

deno/tests/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ t('Array of Date', async() => {
139139
return [now.getTime(), (await sql`select ${ sql.array([now, now, now]) } as x`)[0].x[2].getTime()]
140140
})
141141

142-
t("Array of Box", async () => [
142+
t('Array of Box', async() => [
143143
'(3,4),(1,2);(6,7),(4,5)',
144-
(await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(";")
145-
]);
144+
(await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(';')
145+
])
146146

147147
t('Nested array n2', async() =>
148148
['4', (await sql`select ${ sql.array([[1, 2], [3, 4]]) } as x`)[0].x[1][1]]
@@ -2480,4 +2480,4 @@ t('Insert array with undefined transform', async() => {
24802480
]
24812481
})
24822482

2483-
;window.addEventListener("unload", () => Deno.exit(process.exitCode))
2483+
;window.addEventListener('unload', () => Deno.exit(process.exitCode))

src/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
736736
}
737737

738738
function addArrayType(oid, typarray) {
739-
if (!!options.parsers[typarray] && !!options.serializers[typarray]) return;
739+
if (!!options.parsers[typarray] && !!options.serializers[typarray]) return
740740
const parser = options.parsers[oid]
741741
options.shared.typeArrayMap[oid] = typarray
742742
options.parsers[typarray] = (xs) => arrayParser(xs, parser, typarray)

tests/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ t('Array of Date', async() => {
137137
return [now.getTime(), (await sql`select ${ sql.array([now, now, now]) } as x`)[0].x[2].getTime()]
138138
})
139139

140-
t("Array of Box", async () => [
140+
t('Array of Box', async() => [
141141
'(3,4),(1,2);(6,7),(4,5)',
142-
(await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(";")
143-
]);
142+
(await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(';')
143+
])
144144

145145
t('Nested array n2', async() =>
146146
['4', (await sql`select ${ sql.array([[1, 2], [3, 4]]) } as x`)[0].x[1][1]]

0 commit comments

Comments
 (0)