You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2017/09/12 20:08:51 UTC
[couchdb] 08/28: Remove unnecessary pattern match
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch COUCHDB-3287-pluggable-storage-engines
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 186153757607fe9518c85ea0116522d0e512fea4
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Tue May 30 11:21:26 2017 -0500
Remove unnecessary pattern match
---
src/couch/src/couch_bt_engine.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/couch/src/couch_bt_engine.erl b/src/couch/src/couch_bt_engine.erl
index 10ef3a1..90c321c 100644
--- a/src/couch/src/couch_bt_engine.erl
+++ b/src/couch/src/couch_bt_engine.erl
@@ -306,7 +306,7 @@ open_docs(#st{} = St, DocIds) ->
open_local_docs(#st{} = St, DocIds) ->
Results = couch_btree:lookup(St#st.local_tree, DocIds),
lists:map(fun
- ({ok, #doc{} = Doc}) -> Doc;
+ ({ok, Doc}) -> Doc;
(not_found) -> not_found
end, Results).
--
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.