summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-13 18:36:20 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 11:18:49 -0400
commit71e490b6c38c8f23c84dba735ad2df62ad29a648 (patch)
tree06c06c8fe9c6a71356b1f0fd471896def2443a59
parent7a40a6f9bb6110f83d1a229636cca1322fdfb7e8 (diff)
trivial bug caught by dialyzer
-rw-r--r--src/chttpd_oauth.erl2
1 files changed, 1 insertions, 1 deletions
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;