Skip to content

Commit 525f32a

Browse files
balatvouillon
andauthored
Remove dependency to module Option
Co-Authored-By: Jerome Vouillon <[email protected]>
1 parent 96ebfab commit 525f32a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/widgets/ot_tongue.eliom

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,9 @@ let%client bind side stops init handle update set_before_signal
308308
Lwt.pick [a; b; c]
309309
in
310310
Lwt.async (fun () -> touchstarts handle' ontouchstart);
311-
ignore
312-
(Option.map
313-
(fun update -> React.E.map (fun stop -> set 0.0 (stop, true)) update)
314-
update)
311+
match update with
312+
| Some update -> ignore (React.E.map (fun stop -> set 0.0 (stop, true)) update)
313+
| None -> ()
315314

316315
let%shared tongue ?(a = []) ?(side = `Bottom)
317316
?(stops : stop list =

0 commit comments

Comments
 (0)