Skip to content

Commit

Permalink
Fix spelling and add in callback usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeitte committed Jun 20, 2022
1 parent 2f036cb commit 74e02fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/statsd.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,11 @@ Client.prototype.close = function (callback) {
* Really close the socket and handle any errors related to it
*/
Client.prototype._close = function (callback) {
// If there was an error creating it, nothign to do here
// If there was an error creating it, nothing to do here
if (! this.socket) {
if (callback) {
callback();
}
return;
}

Expand Down

0 comments on commit 74e02fa

Please sign in to comment.