Skip to content

Commit

Permalink
Empty list in query answer is OK.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zimmi48 committed Nov 1, 2019
1 parent 9e8ac70 commit 458c449
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot-components/GitHub_queries.ml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ let closer_info_option_of_closer closer =
| None -> Ok ClosedByCommit
| Some prs -> (
match prs#nodes with
| Some [] -> Ok ClosedByCommit
| Some [Some pr] -> Ok (ClosedByPullRequest (closer_info_of_pr pr))
| Some (_ :: _) ->
Error "Closing commit associated to several pull requests."
Expand Down

0 comments on commit 458c449

Please sign in to comment.