Skip to content

Commit 39a0c15

Browse files
authored
Minor cleanup
Added some semicolons, also PostgresDB.pg_config no longer needs to be saved
1 parent d4ab7cc commit 39a0c15

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ function PostgresDB(options) {
99

1010
this.closed = false;
1111

12-
this.pg_config = options;
13-
this.pool = new pg.Pool(this.pg_config)
12+
this.pool = new pg.Pool(options);
1413
};
1514
module.exports = PostgresDB;
1615

1716
PostgresDB.prototype = Object.create(DB.prototype);
1817

1918
PostgresDB.prototype.close = function(callback) {
2019
this.closed = true;
21-
this.pool.end()
20+
this.pool.end();
2221

2322
if (callback) callback();
2423
};

0 commit comments

Comments
 (0)