Skip to content

Commit d4427a2

Browse files
fix code lint
1 parent a9df60b commit d4427a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/pool.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Pool extends EventEmitter {
5656
config: this.config.connectionConfig
5757
});
5858
this._allConnections.push(connection);
59-
return connection.connect((err) => {
59+
return connection.connect(err => {
6060
if (this._closed) {
6161
return cb(new Error('Pool is closed.'));
6262
}
@@ -101,7 +101,7 @@ class Pool extends EventEmitter {
101101
end(cb) {
102102
this._closed = true;
103103
if (typeof cb !== 'function') {
104-
cb = function (err) {
104+
cb = function(err) {
105105
if (err) {
106106
throw err;
107107
}
@@ -110,7 +110,7 @@ class Pool extends EventEmitter {
110110
let calledBack = false;
111111
let closedConnections = 0;
112112
let connection;
113-
const endCB = function (err) {
113+
const endCB = function(err) {
114114
if (calledBack) {
115115
return;
116116
}

0 commit comments

Comments
 (0)