You've already forked node-redis
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:
committed by
Ruben Bridgewater
parent
c74107c972
commit
0596480b03
@@ -23,7 +23,7 @@ function startStunnel(done) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function stopStunnel(done) {
|
function stopStunnel(done) {
|
||||||
if(stunnel_process) {
|
if (stunnel_process) {
|
||||||
StunnelProcess.stop(stunnel_process, done);
|
StunnelProcess.stop(stunnel_process, done);
|
||||||
} else {
|
} else {
|
||||||
done();
|
done();
|
||||||
|
@@ -10,7 +10,7 @@ var util = require('util');
|
|||||||
function once(cb) {
|
function once(cb) {
|
||||||
var called = false;
|
var called = false;
|
||||||
return function() {
|
return function() {
|
||||||
if(called) return;
|
if (called) return;
|
||||||
called = true;
|
called = true;
|
||||||
cb.apply(this, arguments);
|
cb.apply(this, arguments);
|
||||||
};
|
};
|
||||||
@@ -39,7 +39,7 @@ function StunnelProcess(conf_dir) {
|
|||||||
|
|
||||||
stunnel.on('exit', function(code) {
|
stunnel.on('exit', function(code) {
|
||||||
self.clear();
|
self.clear();
|
||||||
if(code === 0) {
|
if (code === 0) {
|
||||||
self.emit('stopped');
|
self.emit('stopped');
|
||||||
} else {
|
} else {
|
||||||
self.emit('error', new Error('Stunnel exited unexpectedly; code = ' + code));
|
self.emit('error', new Error('Stunnel exited unexpectedly; code = ' + code));
|
||||||
@@ -48,7 +48,7 @@ function StunnelProcess(conf_dir) {
|
|||||||
|
|
||||||
// wait to stunnel to start
|
// wait to stunnel to start
|
||||||
stunnel.stderr.on("data", function(data) {
|
stunnel.stderr.on("data", function(data) {
|
||||||
if(data.toString().match(/Service.+redis.+bound/)) {
|
if (data.toString().match(/Service.+redis.+bound/)) {
|
||||||
clearTimeout(this.timer);
|
clearTimeout(this.timer);
|
||||||
self.emit('started');
|
self.emit('started');
|
||||||
}
|
}
|
||||||
|
@@ -193,9 +193,7 @@ describe("TLS connection tests", function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user