Skip to content

Commit

Permalink
Use Range class that memoizes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Oct 15, 2014
1 parent b2b4860 commit f07f096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module-cache.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ loadFolderCompatibility = (modulePath, rootPath, rootMetadata, moduleCache) ->

for name, version of dependencies
try
new semver.Range(version)
new Range(version)
catch error
delete dependencies[name]

Expand Down

0 comments on commit f07f096

Please sign in to comment.