diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2010-07-19 11:32:46 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2010-07-19 11:32:46 +0000 |
commit | 11aa4f9db32ef33ef8b9e17ee2a685c95bc553b2 (patch) | |
tree | 9b1c93ee3a69c0376169d0905c401f89b4d0a49a /src/couchdb | |
parent | 4c780ad5eb81e0e4c66b45fd70fbb623c3a19be6 (diff) |
Fix possible bad match error - WriteFun might not return the atom 'ok'.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@965434 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_doc.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_doc.erl b/src/couchdb/couch_doc.erl index acae0c55..a6d23a91 100644 --- a/src/couchdb/couch_doc.erl +++ b/src/couchdb/couch_doc.erl @@ -437,7 +437,7 @@ atts_to_mp([Att | RestAtts], Boundary, WriteFun, true -> fun att_foldl/3 end, - AttFun(Att, fun(Data, ok) -> WriteFun(Data) end, ok), + AttFun(Att, fun(Data, _) -> WriteFun(Data) end, ok), WriteFun(<<"\r\n--", Boundary/binary>>), atts_to_mp(RestAtts, Boundary, WriteFun, SendEncodedAtts). |