Skip to content

Commit

Permalink
Remove unnecessary parentheses
Browse files Browse the repository at this point in the history
Co-authored-by: Hannes Mehnert <[email protected]>
  • Loading branch information
MagnusS and hannesm authored Aug 26, 2020
1 parent 3b91e2e commit c9e1a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_ipv6.ml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ let listen ?(tcp = noop) ?(udp = noop) ?(default = noop) stack =
~udp:udp
~default:(fun ~proto:_ -> default))) >>= fun _ -> Lwt.return_unit

let udp_message = (Cstruct.of_string "hello on UDP over IPv6")
let udp_message = Cstruct.of_string "hello on UDP over IPv6"

let check_for_one_udp_packet on_received_one ~src ~dst buf =
(match Udp_packet.Unmarshal.of_cstruct buf with
Expand All @@ -62,7 +62,7 @@ let check_for_one_udp_packet on_received_one ~src ~dst buf =
let send_forever sender receiver_address udp_message =
let rec loop () =
(* Check that we have an IP before sending *)
if (List.length (Ipv6.get_ip sender.ip)) >= 1 then
if List.length (Ipv6.get_ip sender.ip) >= 1 then
begin
Udp.write sender.udp ~dst:receiver_address ~dst_port:1234 udp_message
>|= Rresult.R.get_ok
Expand Down

0 comments on commit c9e1a04

Please sign in to comment.