Skip to content

Commit

Permalink
Update checkVersion
Browse files Browse the repository at this point in the history
To use `const` instead of `let` to fix lint error
  • Loading branch information
RockyNiu committed Mar 17, 2017
1 parent 44a1796 commit 248907d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialects/postgres/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ assign(Client_PG.prototype, {
checkVersion(connection) {
return new Promise(function (resolver, rejecter) {
connection.query('select version();', function (err, resp) {
let version = resp.rows[0].version;
const version = resp.rows[0].version;
if (err) {
return rejecter(err);
}
Expand Down

0 comments on commit 248907d

Please sign in to comment.