Permalink
Browse files

style

  • Loading branch information...
1 parent 9bcfc07 commit d9087c10ad39c60b389b76c0da80bb7fbd122469 @ry ry committed Jan 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/node.js
View
4 src/node.js
@@ -167,7 +167,7 @@
}
// check if the file exists and is not a directory
- var tryFile = function(requestPath) {
+ function tryFile(requestPath) {
try {
var stats = fs.statSync(requestPath);
if (stats && !stats.isDirectory()) {
@@ -178,7 +178,7 @@
};
// given a path check a the file exists with any of the set extensions
- var tryExtensions = function(p, extension) {
+ function tryExtensions(p, extension) {
for (var i = 0, EL = exts.length; i < EL; i++) {
f = tryFile(p + exts[i]);
if (f) { return f; }

0 comments on commit d9087c1

Please sign in to comment.