We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163572e commit 93e659aCopy full SHA for 93e659a
1 file changed
packages/pg-native/index.js
@@ -8,9 +8,6 @@ const CopyStream = require('./lib/copy-stream')
8
class ClientClass extends EventEmitter {
9
constructor(config) {
10
super()
11
- if (!(this instanceof Client)) {
12
- return new Client(config)
13
- }
14
15
config = config || {}
16
@@ -329,5 +326,5 @@ const throwIfError = function (pq) {
329
326
module.exports.version = require('./package.json').version
330
327
331
328
module.exports = function Client(config) {
332
- return new ClientClass(config);
+ return new ClientClass(config)
333
}
0 commit comments