You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by to...@apache.org on 2015/11/02 01:23:06 UTC

couchdb-mango git commit: Remove duplicate function clause

Repository: couchdb-mango
Updated Branches:
  refs/heads/2835-fix-index-selection 62362de9a -> 41ac4a66e


Remove duplicate function clause

COUCHDB-2835


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mango/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mango/commit/41ac4a66
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mango/tree/41ac4a66
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mango/diff/41ac4a66

Branch: refs/heads/2835-fix-index-selection
Commit: 41ac4a66edc3e219a5238cfe8a0e8fb4e9c5d39f
Parents: 62362de
Author: Tony Sun <to...@cloudant.com>
Authored: Sun Nov 1 16:23:43 2015 -0800
Committer: Tony Sun <to...@cloudant.com>
Committed: Sun Nov 1 16:23:43 2015 -0800

----------------------------------------------------------------------
 src/mango_idx_text.erl | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/41ac4a66/src/mango_idx_text.erl
----------------------------------------------------------------------
diff --git a/src/mango_idx_text.erl b/src/mango_idx_text.erl
index ba92a32..5528915 100644
--- a/src/mango_idx_text.erl
+++ b/src/mango_idx_text.erl
@@ -300,9 +300,6 @@ indexable_fields(Fields, {op_or, [{op_field, Field0},
 indexable_fields(Fields, {op_or, Args}) when is_list(Args) ->
     lists:foldl(fun(Arg, Fields0) -> indexable_fields(Fields0, Arg) end,
         Fields, Args);
-indexable_fields(Fields, {op_or, Args}) when is_list(Args) ->
-    lists:foldl(fun(Arg, Fields0) -> indexable_fields(Fields0, Arg) end,
-        Fields, Args);
 
 indexable_fields(Fields, {op_not, {ExistsQuery, Arg}}) when is_tuple(Arg) ->
     Fields0 = indexable_fields(Fields, ExistsQuery),