Skip to content

Commit

Permalink
[style] cleanup unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeck committed Aug 23, 2011
1 parent 03daece commit 52c0529
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/forever/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Monitor.prototype.start = function (restart) {
self.emit('error', new Error('Cannot start process that is already running.'));
});
}

var child = this.trySpawn();
if (!child) {
process.nextTick(function () {
Expand Down Expand Up @@ -361,8 +361,7 @@ Monitor.prototype.kill = function (forceStop) {
// to the target process spawned by this instance.
//
Monitor.prototype._getEnv = function () {
var self = this,
merged = {};
var merged = {};

function addKey (key, source) {
merged[key] = source[key]
Expand All @@ -373,7 +372,7 @@ Monitor.prototype._getEnv = function () {
// environment variables in `this.env`.
//
for(var k in process.env) {
if(!self.hideEnv[k]) {
if(!this.hideEnv[k]) {
addKey(k, process.env);
}
}
Expand Down

0 comments on commit 52c0529

Please sign in to comment.