Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jan 16, 2011
1 parent 9bcfc07 commit d9087c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node.js
Expand Up @@ -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()) {
Expand All @@ -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; }
Expand Down

0 comments on commit d9087c1

Please sign in to comment.