diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2009-11-21 13:43:43 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2009-11-21 13:43:43 +0000 |
commit | aef9dbd3a6cbb85085023d3c8565740e09fd6a77 (patch) | |
tree | 7ee342a14f36f7a21b2249b832c9700f082d55b6 /src/couchdb/couch_httpd.erl | |
parent | 9c97bb531ed9b5d6fc18fcef87a6742514e984d5 (diff) |
code improvements from tidier. Patch by Kostis Sagonas. COUCHDB-570
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@882903 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd.erl')
-rw-r--r-- | src/couchdb/couch_httpd.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index caffdd51..a3e486f1 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -97,17 +97,17 @@ start_link() -> make_arity_1_fun(SpecStr) -> case couch_util:parse_term(SpecStr) of {ok, {Mod, Fun, SpecArg}} -> - fun(Arg) -> apply(Mod, Fun, [Arg, SpecArg]) end; + fun(Arg) -> Mod:Fun(Arg, SpecArg) end; {ok, {Mod, Fun}} -> - fun(Arg) -> apply(Mod, Fun, [Arg]) end + fun(Arg) -> Mod:Fun(Arg) end end. make_arity_2_fun(SpecStr) -> case couch_util:parse_term(SpecStr) of {ok, {Mod, Fun, SpecArg}} -> - fun(Arg1, Arg2) -> apply(Mod, Fun, [Arg1, Arg2, SpecArg]) end; + fun(Arg1, Arg2) -> Mod:Fun(Arg1, Arg2, SpecArg) end; {ok, {Mod, Fun}} -> - fun(Arg1, Arg2) -> apply(Mod, Fun, [Arg1, Arg2]) end + fun(Arg1, Arg2) -> Mod:Fun(Arg1, Arg2) end end. % SpecStr is "{my_module, my_fun}, {my_module2, my_fun2}" |