Skip to content

Commit

Permalink
Do not print undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed May 31, 2024
1 parent 142fcd0 commit e973b27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32569,7 +32569,7 @@ async function run() {
const { progress, conclusion, logs } = report;
for (const { severity, message, resource } of logs) {
(0, import_core3.info)(colorize(severity, message));
(0, import_core3.info)(JSON.stringify(resource, null, 2));
resource && (0, import_core3.info)(JSON.stringify(resource, null, 2));
}
if (progress === "done") {
shouldStop = true;
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function run(): Promise<void> {

for (const { severity, message, resource } of logs) {
info(colorize(severity, message));
info(JSON.stringify(resource, null, 2));
resource && info(JSON.stringify(resource, null, 2));
}

if (progress === 'done') {
Expand Down

0 comments on commit e973b27

Please sign in to comment.