Skip to content

Commit

Permalink
Fixed extra var
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Feb 21, 2014
1 parent fe8f2f7 commit e95da82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Expand Up @@ -15,7 +15,7 @@ var license = require('./license');

var flatten = function(json) {
var moduleInfo = {licenses: UNKNOWN},
licenseData;
licenseData, files;

data[json.name + '@' + json.version] = moduleInfo;

Expand Down Expand Up @@ -48,7 +48,7 @@ var flatten = function(json) {
} else if (license(json.readme)) {
moduleInfo.licenses = license(json.readme);
} else {
var files = fs.readdirSync(json.path).filter(function(filename) {
files = fs.readdirSync(json.path).filter(function(filename) {
return filename.indexOf('LICENSE') > -1;
});

Expand Down

0 comments on commit e95da82

Please sign in to comment.