Skip to content

Commit dabeb9b

Browse files
committed
Satisfy Prettier
1 parent ffd5762 commit dabeb9b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/pg-cursor/index.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -244,16 +244,14 @@ Cursor.prototype.close = function (cb) {
244244
cb = (err, rows) => (err ? reject(err) : resolve(rows))
245245
})
246246
}
247+
247248
if (this.state === 'idle' || this.state === 'submitted') {
248249
this._getRows(rows, cb)
249-
}
250-
else if (this.state === 'busy' || this.state === 'initialized') {
250+
} else if (this.state === 'busy' || this.state === 'initialized') {
251251
this._queue.push([rows, cb])
252-
}
253-
else if (this.state === 'error') {
252+
} else if (this.state === 'error') {
254253
setImmediate(() => cb(this._error))
255-
}
256-
else if (this.state === 'done') {
254+
} else if (this.state === 'done') {
257255
setImmediate(() => cb(null, []))
258256
} else {
259257
throw new Error('Unknown state: ' + this.state)

0 commit comments

Comments
 (0)