@@ -120,7 +120,7 @@ class Pool extends EventEmitter {
120120 * counter of consequent failures to create resource
121121 * @type {Number }
122122 */
123- this . _failedTries = 0 ;
123+ this . _failedTries = 0
124124
125125 // create initial resources (if factory.min > 0)
126126 if ( this . _config . autostart === true ) {
@@ -212,8 +212,8 @@ class Pool extends EventEmitter {
212212
213213 // Try counter exceeded - reject resource request to next waiting client
214214 if ( this . _config . maxTries > 0 && this . _failedTries >= this . _config . maxTries ) {
215- this . _dispatchPooledResourceToNextWaitingClient ( ) ;
216- return
215+ this . _dispatchPooledResourceToNextWaitingClient ( )
216+ return
217217 }
218218
219219 const resourceShortfall = numWaitingClients - this . _potentiallyAllocableResourceCount
@@ -268,7 +268,7 @@ class Pool extends EventEmitter {
268268 } else {
269269 let errorMessage = 'Failed to create resource'
270270 if ( this . _config . maxTries > 0 && this . _failedTries >= this . _config . maxTries ) {
271- errorMessage = 'Failed to create resource ' + this . _failedTries + ' in a row'
271+ errorMessage = 'Failed to create resource ' + this . _failedTries + ' in a row'
272272 }
273273 clientResourceRequest . reject ( new errors . ResourceCreationError ( errorMessage ) )
274274 }
@@ -300,7 +300,7 @@ class Pool extends EventEmitter {
300300 _createResource ( ) {
301301 // Do not attempt to create resource if reached maximum number of consequent failures
302302 if ( this . _config . maxTries > 0 && this . _failedTries >= this . _config . maxTries ) {
303- return
303+ return
304304 }
305305 // An attempt to create a resource
306306 const factoryPromise = this . _factory . create ( )
0 commit comments