Skip to content

Commit 1c59cdf

Browse files
author
Federico Builes
committed
Fix the unknown licenses error message
1 parent 29fc7a2 commit 1c59cdf

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

dist/index.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

+4
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ function printLicensesError(
139139
}
140140

141141
function printNullLicenses(changes: Array<Change>): void {
142+
if (changes.length === 0) {
143+
return
144+
}
145+
142146
core.info('\nWe could not detect a license for the following dependencies:\n')
143147
for (const change of changes) {
144148
core.info(

0 commit comments

Comments
 (0)