Skip to content

Commit

Permalink
patch: fixed a bug when using modifiedfilesonly with Reviewdog
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-nelson committed Jun 26, 2024
1 parent 8eb1ade commit 8652305
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions linkspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@ export async function* linkspector(configFile, cmd) {

// If no modified files are in the list of files to check, exit with a message
if (modifiedFilesToCheck.length === 0) {
console.log(
'Skipped link checking. Modified files are not specified in the configuration.'
)
if (cmd.json) {
console.log('{}')
} else {
console.log(
'Skipped link checking. Modified files are not specified in the configuration.'
)
}
process.exit(0)
}

Expand Down

0 comments on commit 8652305

Please sign in to comment.