We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b55b6e commit f86537cCopy full SHA for f86537c
jscomp/others/belt_Result.ml
@@ -38,7 +38,7 @@ let mapWithDefaultU opt default f = match opt with
38
let mapWithDefault opt default f = mapWithDefaultU opt default (fun[@bs] x -> f x)
39
40
let mapU opt f = match opt with
41
- | Ok x -> Some (f x [@bs])
+ | Ok x -> Ok (f x [@bs])
42
| Error y -> Error y
43
44
let map opt f = mapU opt (fun[@bs] x -> f x)
0 commit comments