1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Fix a few style/whitespace errors

This commit is contained in:
Paddy Byers
2015-10-23 17:32:27 +01:00
committed by Ruben Bridgewater
parent c74107c972
commit 0596480b03
3 changed files with 4 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ function startStunnel(done) {
}
function stopStunnel(done) {
if(stunnel_process) {
if (stunnel_process) {
StunnelProcess.stop(stunnel_process, done);
} else {
done();

View File

@@ -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');
}

View File

@@ -193,9 +193,7 @@ describe("TLS connection tests", function () {
});
});
}
});
});
});
});