Skip to content

Commit

Permalink
[utils] isAllowedStatus returns lowercase job status
Browse files Browse the repository at this point in the history
  • Loading branch information
homoluctus committed Nov 12, 2019
1 parent 0198c90 commit 6fdcdb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2511,7 +2511,7 @@ function isAllowedStatus(status) {
if (!jobStatusList.includes(lowercaseStatus)) {
throw new Error('Invalid value input');
}
return status;
return lowercaseStatus;
}
exports.isAllowedStatus = isAllowedStatus;

Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export function isAllowedStatus(status: string): string {
if (!jobStatusList.includes(lowercaseStatus)) {
throw new Error('Invalid value input');
}
return status;
return lowercaseStatus;
}

0 comments on commit 6fdcdb4

Please sign in to comment.