Skip to content

Commit

Permalink
Removing unecessary log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmand3l committed Feb 21, 2014
1 parent 72a6f24 commit fe8f2f7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/index.js
Expand Up @@ -48,16 +48,13 @@ var flatten = function(json) {
} else if (license(json.readme)) {
moduleInfo.licenses = license(json.readme);
} else {
var files = fs.readdirSync(json.path);
files.forEach(function(filename) {
if (filename.indexOf('LICENSE') > -1) {
moduleInfo.licenses = license(fs.readFileSync(path.join(json.path, filename), {encoding: 'utf8'}));
}
var files = fs.readdirSync(json.path).filter(function(filename) {
return filename.indexOf('LICENSE') > -1;
});

if (moduleInfo.licenses == UNKNOWN) {
console.log(json.path);
}
files.forEach(function(filename) {
moduleInfo.licenses = license(fs.readFileSync(path.join(json.path, filename), {encoding: 'utf8'}));
});
}

if (json.dependencies) {
Expand Down

0 comments on commit fe8f2f7

Please sign in to comment.