Skip to content

Commit 5f4486e

Browse files
committed
Avoid using sus continue.
1 parent 3563e3f commit 5f4486e

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

dist/index.js

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ async function run(): Promise<void> {
6161
}
6262
}
6363
} catch (error) {
64-
if (error.message === "Not Found") {
65-
/**
66-
* If an attempt to fetch logs for a new run
67-
*/
68-
core.debug(`Could not find logs for Run ID: ${id}, continuing...`);
69-
continue;
64+
if (error.message !== "Not Found") {
65+
throw error;
7066
}
71-
72-
throw error;
67+
/**
68+
* If an attempt to fetch logs for a new run
69+
*/
70+
core.debug(
71+
`Could not find remote logs for run: ${id}, continuing...`
72+
);
7373
}
7474
}
7575

0 commit comments

Comments
 (0)