Skip to content

Commit be3d75c

Browse files
authored
Update error reporting flaws number (#42893)
1 parent f3a7ea9 commit be3d75c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/links/scripts/rendered-content-link-checker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ async function main(core, octokit, uploadArtifact, opts = {}) {
275275
const reportProps = {
276276
core,
277277
octokit,
278-
reportTitle: `${flaws.length + 1} broken links found`,
278+
reportTitle: `${flaws.length} broken links found`,
279279
reportBody: flawIssueDisplay(flaws, opts),
280280
reportRepository,
281281
reportLabel,
@@ -310,7 +310,7 @@ async function main(core, octokit, uploadArtifact, opts = {}) {
310310
core.setOutput('has_flaws_at_level', flawsInLevel.length > 0)
311311
if (failOnFlaw) {
312312
core.setFailed(
313-
`${flaws.length + 1} broken links found. See action artifact uploads for details`,
313+
`${flaws.length} broken links found. See action artifact uploads for details`,
314314
)
315315
}
316316
}

0 commit comments

Comments
 (0)