Skip to content

Commit

Permalink
fix error when pass/fail called shortly after progress
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Oct 6, 2023
1 parent 658e01a commit 9ff1e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/github-check-run/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/github-check-run",
"version": "0.0.8",
"version": "0.0.9",
"description": "Interact with GitHub check rest API",
"license": "MIT",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion packages/github-check-run/src/start_github_check_run.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ ${JSON.stringify(body, null, " ")}`);
pendingAbortController.signal.onabort = resolve;
setTimeout(resolve, msBetweenProgressCalls);
});
if (pendingAbortController.signal.aborted) {
if (pendingAbortController && pendingAbortController.signal.aborted) {
return;
}
pendingAbortController = null;
Expand Down

0 comments on commit 9ff1e86

Please sign in to comment.