From 71e490b6c38c8f23c84dba735ad2df62ad29a648 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Tue, 13 Jul 2010 18:36:20 -0400 Subject: trivial bug caught by dialyzer --- src/chttpd_oauth.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/chttpd_oauth.erl b/src/chttpd_oauth.erl index f0bffb36..70995409 100644 --- a/src/chttpd_oauth.erl +++ b/src/chttpd_oauth.erl @@ -31,7 +31,7 @@ oauth_authentication_handler(#httpd{mochi_req=MochiReq}=Req) -> % Look up the consumer key and get the roles to give the consumer set_user_ctx(Req, AccessToken) -> DbName = couch_config:get("chttpd_auth", "authentication_db"), - {ok, _Db} = chttpd_auth:ensure_users_db_exists(?l2b(DbName)), + ok = chttpd_auth:ensure_users_db_exists(?l2b(DbName)), Name = ?l2b(couch_config:get("oauth_token_users", AccessToken)), case chttpd_auth:get_user(Name) of nil -> Req; -- cgit v1.2.3