From 46efea7823acfef5230f33f4b27c99bc176aafbc Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 20 Jan 2017 23:56:32 +0700 Subject: Use BatOption.defalt instead of homegrown equivalent. If we are going to use batteries for numeric_compare, why not take advantage of the rest. --- src/vyconfd.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vyconfd.ml') diff --git a/src/vyconfd.ml b/src/vyconfd.ml index c07b1b3..d8fa7c5 100644 --- a/src/vyconfd.ml +++ b/src/vyconfd.ml @@ -40,7 +40,7 @@ let make_session_token () = let setup_session world req = let token = make_session_token () in let user = "unknown user" in - let client_app = Util.substitute_default req.client_application "unknown client" in + let client_app = BatOption.default "unknown client" req.client_application in let () = Hashtbl.add sessions token (Session.make world client_app user) in {response_tmpl with output=(Some token)} -- cgit v1.2.3