Skip to content

Commit 07759ac

Browse files
committed
Satisfy Prettier
1 parent e800f45 commit 07759ac

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
@@ -226,16 +226,14 @@ class Cursor extends EventEmitter {
226226
cb = (err, rows) => (err ? reject(err) : resolve(rows))
227227
})
228228
}
229+
229230
if (this.state === 'idle' || this.state === 'submitted') {
230231
this._getRows(rows, cb)
231-
}
232-
else if (this.state === 'busy' || this.state === 'initialized') {
232+
} else if (this.state === 'busy' || this.state === 'initialized') {
233233
this._queue.push([rows, cb])
234-
}
235-
else if (this.state === 'error') {
234+
} else if (this.state === 'error') {
236235
setImmediate(() => cb(this._error))
237-
}
238-
else if (this.state === 'done') {
236+
} else if (this.state === 'done') {
239237
setImmediate(() => cb(null, []))
240238
} else {
241239
throw new Error('Unknown state: ' + this.state)

0 commit comments

Comments
 (0)