Skip to content

Commit e9b8eb1

Browse files
committed
Used unit arguments for clarity
1 parent 95b92c9 commit e9b8eb1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/postgresql.ml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -963,26 +963,26 @@ module Connection (Mutex : Mutex) = struct
963963
in
964964
let wrap_conn f =
965965
Fun.protect
966-
~finally:(fun _ -> Mutex.unlock conn_mtx)
967-
(fun _ ->
966+
~finally:(fun () -> Mutex.unlock conn_mtx)
967+
(fun () ->
968968
Mutex.lock conn_mtx;
969969
check_finished ();
970970
f my_conn)
971971
in
972972
let wrap_cancel f =
973973
Fun.protect
974-
~finally:(fun _ -> Mutex.unlock cancel_mtx)
975-
(fun _ ->
974+
~finally:(fun () -> Mutex.unlock cancel_mtx)
975+
(fun () ->
976976
Mutex.lock cancel_mtx;
977977
check_finished ();
978978
f my_conn)
979979
in
980980
let wrap_both f =
981981
Fun.protect
982-
~finally:(fun _ ->
982+
~finally:(fun () ->
983983
Mutex.unlock cancel_mtx;
984984
Mutex.unlock conn_mtx)
985-
(fun _ ->
985+
(fun () ->
986986
Mutex.lock conn_mtx;
987987
Mutex.lock cancel_mtx;
988988
check_finished ();

0 commit comments

Comments
 (0)