From 5a21138e37e016c044eeb7d53ffa0ac77a5e71a1 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 4 Dec 2010 13:39:28 -0800 Subject: [PATCH] fix global leak --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index 571755b4e0..d83089f7c4 100644 --- a/src/node.js +++ b/src/node.js @@ -165,7 +165,7 @@ // check if the file exists and is not a directory var tryFile = function(requestPath) { try { - stats = fs.statSync(requestPath); + var stats = fs.statSync(requestPath); if (stats && !stats.isDirectory()) { return requestPath; }