File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -101,17 +101,16 @@ module Persistent_cookies = struct
101101 end
102102
103103 let add cookie ({expiry; _} as content ) =
104- match expiry with
105- | Some t ->
106- Expiry_dates. add_cookie t cookie >> = fun _ -> Cookies. add cookie content
107- | None -> Lwt. return_unit
104+ ( match expiry with
105+ | Some t -> Expiry_dates. add_cookie t cookie
106+ | None -> Lwt. return_unit)
107+ >> = fun _ -> Cookies. add cookie content
108108
109109 let replace_if_exists cookie ({expiry; _} as content ) =
110- match expiry with
111- | Some t ->
112- Expiry_dates. add_cookie t cookie >> = fun _ ->
113- Cookies. replace_if_exists cookie content
114- | None -> Lwt. return_unit
110+ (match expiry with
111+ | Some t -> Expiry_dates. add_cookie t cookie
112+ | None -> Lwt. return_unit)
113+ >> = fun _ -> Cookies. replace_if_exists cookie content
115114
116115 let garbage_collect ~section gc_cookie =
117116 let now = Unix. time () in
You can’t perform that action at this time.
0 commit comments