Skip to content

Commit

Permalink
Apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed Nov 29, 2024
1 parent e163d64 commit 6c8590d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion runtime/Option.res
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ let all6 = ((a, b, c, d, e, f)) => {
| (Some(a), Some(b), Some(c), Some(d), Some(e), Some(f)) => Some((a, b, c, d, e, f))
| _ => None
}
}
}
2 changes: 1 addition & 1 deletion runtime/Option.resi
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,4 @@ let all6: ((option<'a>, option<'b>, option<'c>, option<'d>, option<'e>, option<'
'd,
'e,
'f,
)>
)>
3 changes: 1 addition & 2 deletions runtime/Result.res
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ let mapError = (r, f) =>
| Error(e) => Error(f(e))
}


let all = results => {
let acc = []
let returnValue = ref(None)
Expand Down Expand Up @@ -163,4 +162,4 @@ let all6 = ((a, b, c, d, e, f)) => {
| (_, _, _, _, Error(e), _) => Error(e)
| (_, _, _, _, _, Error(f)) => Error(f)
}
}
}
2 changes: 1 addition & 1 deletion runtime/Result.resi
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,4 @@ let all6: (
result<'r5, 'e>,
result<'r6, 'e>,
)
) => result<('r1, 'r2, 'r3, 'r4, 'r5, 'r6), 'e>
) => result<('r1, 'r2, 'r3, 'r4, 'r5, 'r6), 'e>
2 changes: 1 addition & 1 deletion tests/tests/src/core/Core_ResultTests.res
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ Test.run(__POS_OF__("all"), Result.all2((Ok(1), Error(2))), eq, Error(2))
Test.run(__POS_OF__("all"), Result.all3((Ok(1), Ok(2), Ok(3))), eq, Ok((1, 2, 3)))
Test.run(__POS_OF__("all"), Result.all3((Ok(1), Error(2), Ok(3))), eq, Error(2))
Test.run(__POS_OF__("all"), Result.all4((Ok(1), Ok(2), Ok(3), Ok(4))), eq, Ok((1, 2, 3, 4)))
Test.run(__POS_OF__("all"), Result.all4((Ok(1), Error(2), Ok(3), Ok(4))), eq, Error(2))
Test.run(__POS_OF__("all"), Result.all4((Ok(1), Error(2), Ok(3), Ok(4))), eq, Error(2))

0 comments on commit 6c8590d

Please sign in to comment.