Skip to content

Commit 1a76ddb

Browse files
committed
fix: Actually bind the --dry-run flag
1 parent a3e89a1 commit 1a76ddb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/learnocaml_client.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,11 +812,11 @@ module Grade = struct
812812
(Printf.eprintf "Results NOT saved to server (deadline expired)\n";
813813
Lwt.return 1)
814814
else
815-
match token with
816-
| Some token ->
815+
match eo.submit, token with
816+
| true, Some token ->
817817
upload_report server token exercise solution report >>= fun _ ->
818818
Printf.eprintf "Results saved to server\n"; Lwt.return 0
819-
| None -> Lwt.return 0
819+
| _ -> Lwt.return 0
820820

821821
let man =
822822
man

0 commit comments

Comments
 (0)