lib/createClient.js
/* This function is to allow 'CreateClient'
// to be optimized by isolating the 'try'.
// Because this is just to try and close the
// client, if it's somehow connected after
// erroring, we won't handle any errors that
// come out of this `CloseClient`.
*/
This function is to allow 'CreateClient'
to be optimized by isolating the 'try'.
Because this is just to try and close the
client, if it's somehow connected after
erroring, we won't handle any errors that
come out of this `CloseClient`.
This function is to allow ' CreateClient ' to be optimized by isolating the ' try ' . Because this is just to try and close the client if it ' s somehow connected after erroring we won ' t handle any errors that come out of this ` CloseClient ` .
function CloseClient(
  client
){
  client.tested = true;
  try{
    client.end();
    client.destroy();
  }
  catch(error){}
}
function CloseClient ( client ) { client . tested = true ; try { client . end ( ) ; client . destroy ( ) ; } catch ( error ) { } }
This function is to allow 'CreateClient'
to be optimized by isolating the 'try'.
This function is to allow ' CreateClient ' to be optimized by isolating the ' try ' .