Fix the unknown licenses error message
This commit is contained in:
+3
@@ -244,6 +244,9 @@ function printLicensesError(changes, licenses) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function printNullLicenses(changes) {
|
function printNullLicenses(changes) {
|
||||||
|
if (changes.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
core.info('\nWe could not detect a license for the following dependencies:\n');
|
core.info('\nWe could not detect a license for the following dependencies:\n');
|
||||||
for (const change of changes) {
|
for (const change of changes) {
|
||||||
core.info(`${ansi_styles_1.default.bold.open}${change.manifest} » ${change.name}@${change.version}${ansi_styles_1.default.bold.close}`);
|
core.info(`${ansi_styles_1.default.bold.open}${change.manifest} » ${change.name}@${change.version}${ansi_styles_1.default.bold.close}`);
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -139,6 +139,10 @@ function printLicensesError(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function printNullLicenses(changes: Array<Change>): void {
|
function printNullLicenses(changes: Array<Change>): void {
|
||||||
|
if (changes.length === 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
core.info('\nWe could not detect a license for the following dependencies:\n')
|
core.info('\nWe could not detect a license for the following dependencies:\n')
|
||||||
for (const change of changes) {
|
for (const change of changes) {
|
||||||
core.info(
|
core.info(
|
||||||
|
|||||||
Reference in New Issue
Block a user