Skip to content

Commit 228d0db

Browse files
committed
Remove unnecessary begin/end
Signed-off-by: Zach Ploskey <[email protected]>
1 parent 05e516d commit 228d0db

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

jscomp/others/belt_List.ml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -694,17 +694,13 @@ let setAssoc xs x k eq = setAssocU xs x k (fun [@bs] a b -> eq a b)
694694

695695
let sort xs cmp =
696696
let arr = toArray xs in
697-
begin
698-
Belt_SortArray.stableSortInPlaceBy arr cmp;
699-
fromArray arr;
700-
end
697+
Belt_SortArray.stableSortInPlaceBy arr cmp;
698+
fromArray arr
701699

702700
let sortU xs cmp =
703701
let arr = toArray xs in
704-
begin
705-
Belt_SortArray.stableSortInPlaceByU arr cmp;
706-
fromArray arr;
707-
end
702+
Belt_SortArray.stableSortInPlaceByU arr cmp;
703+
fromArray arr
708704

709705
let rec getByU xs p =
710706
match xs with

0 commit comments

Comments
 (0)