Skip to content

Commit

Permalink
Fix the unknown licenses error message
Browse files Browse the repository at this point in the history
  • Loading branch information
febuiles committed Jun 16, 2022
1 parent 29fc7a2 commit 1c59cdf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ function printLicensesError(
}

function printNullLicenses(changes: Array<Change>): void {
if (changes.length === 0) {
return
}

core.info('\nWe could not detect a license for the following dependencies:\n')
for (const change of changes) {
core.info(
Expand Down

0 comments on commit 1c59cdf

Please sign in to comment.