Skip to content

Commit

Permalink
Merge pull request #529 from stoplightio/fix/handle-no-annotations
Browse files Browse the repository at this point in the history
fix: handle no annotations in updateGithubCheck
  • Loading branch information
Domagoj Kriskovic authored May 17, 2021
2 parents 0b21c81 + 7fc81d0 commit 8ff2d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const updateGithubCheck = (
conclusion: Conclusions,
message?: string
) => {
const chunkedAnnotations = chunk(annotations);
const chunkedAnnotations = annotations.length ? chunk(annotations) : [[]];

const updateAttempts = chunkedAnnotations.map(annotationChunk =>
TE.tryCatch(
Expand Down

0 comments on commit 8ff2d4a

Please sign in to comment.