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
|
// check if the file exists and is not a directory
|
||||||
var tryFile = function(requestPath) {
|
var tryFile = function(requestPath) {
|
||||||
try {
|
try {
|
||||||
stats = fs.statSync(requestPath);
|
var stats = fs.statSync(requestPath);
|
||||||
if (stats && !stats.isDirectory()) {
|
if (stats && !stats.isDirectory()) {
|
||||||
return requestPath;
|
return requestPath;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user