Skip to content

Commit

Permalink
fix default case in error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
elireisman committed May 23, 2022
1 parent 0be8084 commit 19edfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function run(): Promise<void> {
core.setFailed(
`Dependency review is not supported on this repository. Please ensure that Dependency graph is enabled, see https://github.com/${github.context.repo.owner}/${github.context.repo.repo}/settings/security_analysis`
)
} else if (error instanceof Error) {
} else (error instanceof Error) {
core.setFailed(error.message)
}
}
Expand Down

0 comments on commit 19edfd7

Please sign in to comment.