Skip to content

Commit

Permalink
Fix context (this) in _checkPgPass.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pimm authored and brianc committed Aug 26, 2020
1 parent acfbafa commit 0758b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pg/lib/client.js
Expand Up @@ -215,7 +215,7 @@ class Client extends EventEmitter {
} else if (this.password !== null) {
cb()
} else {
pgPass(this.connectionParameters, function (pass) {
pgPass(this.connectionParameters, (pass) => {
if (undefined !== pass) {
this.connectionParameters.password = this.password = pass
}
Expand Down

0 comments on commit 0758b76

Please sign in to comment.