Skip to content

Commit 4d65862

Browse files
zthmediremi
andauthored
Update tools/src/tools.ml
Co-authored-by: Médi-Rémi Hashim <[email protected]>
1 parent f0b6de9 commit 4d65862

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/src/tools.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,5 +1779,8 @@ module Migrate = struct
17791779
Printf.fprintf oc "%s" contents;
17801780
close_out oc;
17811781
Ok (Filename.basename path ^ ": File migrated successfully"))
1782-
| Ok _ -> Ok (Filename.basename path ^ ": File did not need migration")
1782+
| Ok (contents, _) -> (
1783+
match outputMode with
1784+
| `Stdout -> Ok contents
1785+
| `File -> Ok (Filename.basename path ^ ": File did not need migration"))
17831786
end

0 commit comments

Comments
 (0)