Skip to content

Commit

Permalink
doi2bib: make formatter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mseri authored Mar 24, 2021
1 parent c8815b3 commit 1aac8e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/doi2bib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ let rec get ?headers ?fallback uri =
| None, None ->
Lwt.fail_with ("Malformed redirection trying to access '" ^ Uri.to_string uri ^ "'."))
| d when (d = 404 || d = 504) && Option.is_some fallback ->
(let* () = Cohttp_lwt.Body.drain_body body in
match fallback with
let* () = Cohttp_lwt.Body.drain_body body in
(match fallback with
| Some uri -> get ?headers uri
| None -> assert false)
| 400 | 404 ->
Expand Down

0 comments on commit 1aac8e0

Please sign in to comment.