You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2017/04/09 05:23:45 UTC

[couchdb] branch 63012-scheduler updated: [fixup] saying no to 2 space indents

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch 63012-scheduler
in repository https://gitbox.apache.org/repos/asf/couchdb.git

The following commit(s) were added to refs/heads/63012-scheduler by this push:
       new  75c6c65   [fixup] saying no to 2 space indents
75c6c65 is described below

commit 75c6c65200383b8e32406664e487d3e07283c6a5
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Sun Apr 9 01:23:39 2017 -0400

    [fixup] saying no to 2 space indents
---
 .../src/couch_replicator_filters.erl               | 31 +++++++++-------------
 1 file changed, 13 insertions(+), 18 deletions(-)

diff --git a/src/couch_replicator/src/couch_replicator_filters.erl b/src/couch_replicator/src/couch_replicator_filters.erl
index 346b448..90c654a 100644
--- a/src/couch_replicator/src/couch_replicator_filters.erl
+++ b/src/couch_replicator/src/couch_replicator_filters.erl
@@ -17,11 +17,6 @@
 
 -include_lib("couch/include/couch_db.hrl").
 
--import(couch_util, [
-    get_value/2,
-    get_value/3
-]).
-
 
 % Parse the filter from replication options proplist.
 % Return {ok, {FilterType,...}} | {error, ParseError}.
@@ -29,16 +24,16 @@
 % in source database, this code doesn't fetch the filter
 % code, but only returns the name of the filter.
 -spec parse([_]) ->
-  {ok, nil} |
-  {ok, {view, binary(), {[_]}}} |
-  {ok, {user, {binary(), binary()}, {[_]}}} |
-  {ok, {docids, [_]}} |
-  {ok, {mango, {[_]}}} |
-  {error, binary()}.
+    {ok, nil} |
+    {ok, {view, binary(), {[_]}}} |
+    {ok, {user, {binary(), binary()}, {[_]}}} |
+    {ok, {docids, [_]}} |
+    {ok, {mango, {[_]}}} |
+    {error, binary()}.
 parse(Options) ->
-    Filter = get_value(filter, Options),
-    DocIds = get_value(doc_ids, Options),
-    Selector = get_value(selector, Options),
+    Filter = couch_util:get_value(filter, Options),
+    DocIds = couch_util:get_value(doc_ids, Options),
+    Selector = couch_util:get_value(selector, Options),
     case {Filter, DocIds, Selector} of
         {undefined, undefined, undefined} ->
             {ok, nil};
@@ -92,10 +87,10 @@ fetch(DDocName, FilterName, Source, UserCtx) ->
 -spec view_type([_], [_]) ->
     {view, {binary(), binary()}} | {db, nil} | {error, binary()}.
 view_type(Props, Options) ->
-    case get_value(<<"filter">>, Props) of
+    case couch_util:get_value(<<"filter">>, Props) of
         <<"_view">> ->
-            {QP}  = get_value(query_params, Options, {[]}),
-            ViewParam = get_value(<<"view">>, QP),
+            {QP}  = couch_util:get_value(query_params, Options, {[]}),
+            ViewParam = couch_util:get_value(<<"view">>, QP),
             case re:split(ViewParam, <<"/">>) of
                 [DName, ViewName] ->
                     {view, {<< "_design/", DName/binary >>, ViewName}};
@@ -150,7 +145,7 @@ fetch_internal(DDocName, FilterName, Source, UserCtx) ->
 
 -spec query_params([_]) -> {[_]}.
 query_params(Options)->
-    get_value(query_params, Options, {[]}).
+    couch_util:get_value(query_params, Options, {[]}).
 
 
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].