Skip to content

Commit

Permalink
Fix a few style/whitespace errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paddybyers authored and Ruben Bridgewater committed Nov 23, 2015
1 parent c74107c commit 0596480
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function startStunnel(done) {
}

function stopStunnel(done) {
if(stunnel_process) {
if (stunnel_process) {
StunnelProcess.stop(stunnel_process, done);
} else {
done();
Expand Down
6 changes: 3 additions & 3 deletions test/lib/stunnel-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down Expand Up @@ -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));
Expand All @@ -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');
}
Expand Down
2 changes: 0 additions & 2 deletions test/tls.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,7 @@ describe("TLS connection tests", function () {
});
});
}

});

});
});
});

0 comments on commit 0596480

Please sign in to comment.