From 0596480b034899dedeb79d4cb4c4cea1fcdb4d7a Mon Sep 17 00:00:00 2001 From: Paddy Byers Date: Fri, 23 Oct 2015 17:32:27 +0100 Subject: [PATCH] Fix a few style/whitespace errors --- test/helper.js | 2 +- test/lib/stunnel-process.js | 6 +++--- test/tls.spec.js | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/helper.js b/test/helper.js index 942546e980..2cb66943f7 100644 --- a/test/helper.js +++ b/test/helper.js @@ -23,7 +23,7 @@ function startStunnel(done) { } function stopStunnel(done) { - if(stunnel_process) { + if (stunnel_process) { StunnelProcess.stop(stunnel_process, done); } else { done(); diff --git a/test/lib/stunnel-process.js b/test/lib/stunnel-process.js index a28c7f4de5..f20bc22448 100644 --- a/test/lib/stunnel-process.js +++ b/test/lib/stunnel-process.js @@ -10,7 +10,7 @@ var util = require('util'); function once(cb) { var called = false; return function() { - if(called) return; + if (called) return; called = true; cb.apply(this, arguments); }; @@ -39,7 +39,7 @@ function StunnelProcess(conf_dir) { stunnel.on('exit', function(code) { self.clear(); - if(code === 0) { + if (code === 0) { self.emit('stopped'); } else { self.emit('error', new Error('Stunnel exited unexpectedly; code = ' + code)); @@ -48,7 +48,7 @@ function StunnelProcess(conf_dir) { // wait to stunnel to start stunnel.stderr.on("data", function(data) { - if(data.toString().match(/Service.+redis.+bound/)) { + if (data.toString().match(/Service.+redis.+bound/)) { clearTimeout(this.timer); self.emit('started'); } diff --git a/test/tls.spec.js b/test/tls.spec.js index fc33c5a44f..5e71446182 100644 --- a/test/tls.spec.js +++ b/test/tls.spec.js @@ -193,9 +193,7 @@ describe("TLS connection tests", function () { }); }); } - }); - }); }); });