Skip to content

Commit 5d57041

Browse files
authored
Merge pull request #14046 from github/repo-sync
repo sync
2 parents 6144ebc + a6490e1 commit 5d57041

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script/rendered-content-link-checker.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ async function main(opts, files) {
119119
if (Array.isArray(fileList) && fileList.length > 0) {
120120
files = fileList
121121
} else {
122-
throw new InvalidArgumentError('No files found in --list.')
122+
// This must be allowed for empty PRs that accompany docs-early-access repo PRs
123+
console.warn('No files found in --list. Exiting...')
124+
process.exit(0)
123125
}
124126
}
125127

0 commit comments

Comments
 (0)