Skip to content

Commit

Permalink
Simplify code a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
brianc committed Jan 13, 2020
1 parent 040b77e commit 26e3a75
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/pg/lib/native/client.js
Expand Up @@ -46,15 +46,11 @@ var Client = module.exports = function (config) {

// "hiding" the password so it doesn't show up in stack traces
// or if the client is console.logged
let hiddenPassword = cp.password
const hiddenPassword = cp.password
Object.defineProperty(this, 'password', {
enumerable: false,
get() {
return hiddenPassword
},
set(value) {
hiddenPassword = value
}
writable: true,
value: hiddenPassword
})
this.database = cp.database
this.host = cp.host
Expand Down

0 comments on commit 26e3a75

Please sign in to comment.