Skip to content

Commit

Permalink
Fix layout issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
zodiac403 committed Mar 30, 2018
1 parent 9cb45f2 commit 0480750
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var flatten = function(options) {

// Include property in output unless custom format has set property to false.
var include = function(property) {
return options.customFormat === undefined || options.customFormat[property] !== false;
return (options.customFormat === undefined || options.customFormat[property] !== false);
};

if (include("repository") && json.repository) {
Expand Down Expand Up @@ -202,14 +202,14 @@ var flatten = function(options) {
}

var linesWithCopyright = content
.split('\n')
.filter(function(value) {
return value.startsWith('opyright', 1) && // include copyright statements
!value.startsWith('opyright notice', 1); // exclude lines from from license text
})
.filter(function(value, index, list) {
return index === 0 || value !== list[0]; // remove identical duplicates
});
.split('\n')
.filter(function(value) {
return value.startsWith('opyright', 1) && // include copyright statements
!value.startsWith('opyright notice', 1); // exclude lines from from license text
})
.filter(function(value, index, list) {
return index === 0 || value !== list[0]; // remove identical duplicates
});

if(linesWithCopyright.length > 0) {
moduleInfo.copyright = linesWithCopyright[0].trim();
Expand Down

0 comments on commit 0480750

Please sign in to comment.