Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Drop root path hack
Browse files Browse the repository at this point in the history
Looks like this isn't needed anymore.
  • Loading branch information
bebraw committed Jun 3, 2015
1 parent 6d42392 commit f8d339b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions paths.js
Expand Up @@ -58,10 +58,7 @@ function parseModules(sectionName, section, modules) {
}

function itemForPath(path) {
var items = allItems();

// this check is needed for root paths to work (they have extra slash!)
return items[path] || items['/' + path];
return allItems()[path];
}
exports.itemForPath = itemForPath;

Expand Down

0 comments on commit f8d339b

Please sign in to comment.