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:
parent
e9c7195471
commit
5a21138e37
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user