From 52c0529658c06462b90d274b73d31c6ab23fe72f Mon Sep 17 00:00:00 2001 From: Bradley Meck Date: Tue, 23 Aug 2011 09:21:26 -0500 Subject: [PATCH] [style] cleanup unused variable --- lib/forever/monitor.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/forever/monitor.js b/lib/forever/monitor.js index 096dbac5..cef7a84c 100644 --- a/lib/forever/monitor.js +++ b/lib/forever/monitor.js @@ -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 () { @@ -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] @@ -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); } }