Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 060e948

Browse files
cristianocchenglou
authored andcommitted
small cleanup
1 parent b97610e commit 060e948

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/res_doc.ml

+3-4
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,13 @@ let fits0 w ops =
205205
doConcat ind mode rest
206206
in
207207
let rec doOps ops = match ops with
208-
| _ when !res != None -> ()
208+
| _ when !res != None -> !res = Some true
209209
| (ind, mode, doc)::rest ->
210210
doOp ind mode doc;
211211
doOps rest
212-
| [] -> res := Some (!wr >= 0)
212+
| [] -> !wr >= 0
213213
in
214-
doOps ops;
215-
!res = Some true
214+
doOps ops
216215

217216

218217
let _ = fits0

0 commit comments

Comments
 (0)