Skip to content

Commit

Permalink
Fix error status check in setupClaCheck.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ibakshay committed Sep 20, 2024
1 parent 56fb96e commit 6cfa72f
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 @@ -975,7 +975,7 @@ function getCLAFileContentandSHA(committers, committerMap) {
result = yield (0, persistence_1.getFileContent)();
}
catch (error) {
if (error.status === 404) {
if (error.status === "400") {
return createClaFileAndPRComment(committers, committerMap);
}
else {
Expand Down
2 changes: 1 addition & 1 deletion src/setupClaCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function getCLAFileContentandSHA(
try {
result = await getFileContent()
} catch (error) {
if (error.status === 404) {
if (error.status === "400") {
return createClaFileAndPRComment(committers, committerMap)
} else {

Expand Down

0 comments on commit 6cfa72f

Please sign in to comment.