Skip to content

Commit

Permalink
Group conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
angelapwen committed Jan 25, 2024
1 parent 14205b0 commit 8f47a57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions lib/init-action-post-helper.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/init-action-post-helper.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/init-action-post-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,8 @@ async function removeUploadedSarif(
*/
export function getFinalJobStatus(): JobStatus {
const jobStatusFromEnvironment = process.env[EnvVar.JOB_STATUS];
if (!jobStatusFromEnvironment) {
return JobStatus.Unknown;
}
if (
!jobStatusFromEnvironment ||
!Object.values(JobStatus).includes(jobStatusFromEnvironment as JobStatus)
) {
return JobStatus.Unknown;
Expand Down

0 comments on commit 8f47a57

Please sign in to comment.