File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class Pool extends EventEmitter {
56
56
config : this . config . connectionConfig
57
57
} ) ;
58
58
this . _allConnections . push ( connection ) ;
59
- return connection . connect ( ( err ) => {
59
+ return connection . connect ( err => {
60
60
if ( this . _closed ) {
61
61
return cb ( new Error ( 'Pool is closed.' ) ) ;
62
62
}
@@ -101,7 +101,7 @@ class Pool extends EventEmitter {
101
101
end ( cb ) {
102
102
this . _closed = true ;
103
103
if ( typeof cb !== 'function' ) {
104
- cb = function ( err ) {
104
+ cb = function ( err ) {
105
105
if ( err ) {
106
106
throw err ;
107
107
}
@@ -110,7 +110,7 @@ class Pool extends EventEmitter {
110
110
let calledBack = false ;
111
111
let closedConnections = 0 ;
112
112
let connection ;
113
- const endCB = function ( err ) {
113
+ const endCB = function ( err ) {
114
114
if ( calledBack ) {
115
115
return ;
116
116
}
You can’t perform that action at this time.
0 commit comments