Skip to content

Commit 0596480

Browse files
paddybyersRuben Bridgewater
authored andcommitted
Fix a few style/whitespace errors
1 parent c74107c commit 0596480

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

test/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function startStunnel(done) {
2323
}
2424

2525
function stopStunnel(done) {
26-
if(stunnel_process) {
26+
if (stunnel_process) {
2727
StunnelProcess.stop(stunnel_process, done);
2828
} else {
2929
done();

test/lib/stunnel-process.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var util = require('util');
1010
function once(cb) {
1111
var called = false;
1212
return function() {
13-
if(called) return;
13+
if (called) return;
1414
called = true;
1515
cb.apply(this, arguments);
1616
};
@@ -39,7 +39,7 @@ function StunnelProcess(conf_dir) {
3939

4040
stunnel.on('exit', function(code) {
4141
self.clear();
42-
if(code === 0) {
42+
if (code === 0) {
4343
self.emit('stopped');
4444
} else {
4545
self.emit('error', new Error('Stunnel exited unexpectedly; code = ' + code));
@@ -48,7 +48,7 @@ function StunnelProcess(conf_dir) {
4848

4949
// wait to stunnel to start
5050
stunnel.stderr.on("data", function(data) {
51-
if(data.toString().match(/Service.+redis.+bound/)) {
51+
if (data.toString().match(/Service.+redis.+bound/)) {
5252
clearTimeout(this.timer);
5353
self.emit('started');
5454
}

test/tls.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,7 @@ describe("TLS connection tests", function () {
193193
});
194194
});
195195
}
196-
197196
});
198-
199197
});
200198
});
201199
});

0 commit comments

Comments
 (0)