0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00

fix global leak

This commit is contained in:
Ryan Dahl 2010-12-04 13:39:28 -08:00
parent e9c7195471
commit 5a21138e37

View File

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