Skip to content

Commit

Permalink
Modified changes based on lshint output during Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
Holger Knust committed Jul 7, 2014
1 parent 54e2390 commit 40b4a42
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,22 @@ exports.print = function(sorted) {
};

exports.asCSV = function(sorted) {
var text = '"module name","license","repository"\n';
var text = '"module name","license","repository"\n',
key, module;

for(var key in sorted) {
for(key in sorted) {
if (sorted.hasOwnProperty(key)) {
var module = sorted[key];
module = sorted[key];
text += '"' + key + '",';
if (module.hasOwnProperty('licenses')) {
text += '"' + module['licenses'] + '"';
text += '"' + module.licenses + '"';
}
else {
text += '""';
}
text += ',';
if (module.hasOwnProperty('repository')) {
text += '"' + module['repository'] + '"';
text += '"' + module.repository + '"';
}
else {
text += '""';
Expand Down

0 comments on commit 40b4a42

Please sign in to comment.