From 00bf6acea9452288e00714453a9918eaeaf4c068 Mon Sep 17 00:00:00 2001 From: deathcap Date: Sat, 30 Jan 2016 22:09:25 -0800 Subject: [PATCH] Fix unintentional var client declaration --- src/createClientAuto.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/createClientAuto.js b/src/createClientAuto.js index 62f7e29..dc9fbd1 100644 --- a/src/createClientAuto.js +++ b/src/createClientAuto.js @@ -26,8 +26,6 @@ function createClientAsync(options, cb) { // TODO: refactor with DNS SRV lookup in NMP // TODO: detect ping timeout, https://github.com/PrismarineJS/node-minecraft-protocol/issues/329 ping(options, function(err, response) { - var client; - if (err) return cb(err, null); debug('ping response',response); // TODO: could also use ping pre-connect to save description, type, negotiate protocol etc.