summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/couchdb/couch_rep_att.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/couchdb/couch_rep_att.erl b/src/couchdb/couch_rep_att.erl
index ee4f0184..5f1b57e9 100644
--- a/src/couchdb/couch_rep_att.erl
+++ b/src/couchdb/couch_rep_att.erl
@@ -25,11 +25,7 @@ convert_stub(#att{data=stub, name=Name} = Attachment,
qs = [{rev, couch_doc:rev_to_str({Pos,RevId})}]
},
Ref = make_ref(),
- RcvFun = fun() ->
- Bin = attachment_receiver(Ref, Request),
- cleanup(),
- Bin
- end,
+ RcvFun = fun() -> attachment_receiver(Ref, Request) end,
Attachment#att{data=RcvFun}.
cleanup() ->