Skip to content

Commit

Permalink
refactor: Use a clearer argument name and provide a default value
Browse files Browse the repository at this point in the history
  • Loading branch information
RSeidelsohn committed Apr 12, 2023
1 parent 8540df0 commit 817d7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const recursivelyCollectAllDependencies = (options) => {
data[currentPackageNameAndVersion] = moduleInfo;

// Include property in output unless custom format has set property to false.
const mustInclude = (property) => options?.customFormat?.[property] !== false;
const mustInclude = (propertyName = '') => options?.customFormat?.[propertyName] !== false;

if (mustInclude('repository')) {
const repositoryUrl = helpers.getRepositoryUrl({
Expand Down

0 comments on commit 817d7e0

Please sign in to comment.