You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2021/05/24 19:20:40 UTC

[couchdb] branch unused-vars created (now 4eccbf8)

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

jaydoane pushed a change to branch unused-vars
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at 4eccbf8  Delete unused variables

This branch includes the following new commits:

     new 4eccbf8  Delete unused variables

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[couchdb] 01/01: Delete unused variables

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch unused-vars
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 4eccbf8baab135fea78191de8a4837dddd64b2ed
Author: Jay Doane <ja...@apache.org>
AuthorDate: Thu May 20 19:19:24 2021 -0700

    Delete unused variables
    
    Eliminate compiler warnings
---
 src/couch/src/couch_query_servers.erl | 2 +-
 test/elixir/test/basics_test.exs      | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/couch/src/couch_query_servers.erl b/src/couch/src/couch_query_servers.erl
index d252382..de3d6a5 100644
--- a/src/couch/src/couch_query_servers.erl
+++ b/src/couch/src/couch_query_servers.erl
@@ -110,7 +110,7 @@ rereduce(Lang, RedSrcs, ReducedValues) ->
 
 reduce(_Lang, [], _KVs) ->
     {ok, []};
-reduce(Lang, [<<"_", _/binary>>] = RedSrcs, KVs) ->
+reduce(_Lang, [<<"_", _/binary>>] = RedSrcs, KVs) ->
     builtin_reduce(reduce, RedSrcs, KVs, []);
 reduce(Lang, RedSrcs, KVs) ->
     {OsRedSrcs, BuiltinReds} = lists:partition(fun
diff --git a/test/elixir/test/basics_test.exs b/test/elixir/test/basics_test.exs
index 21c71f9..37af32b 100644
--- a/test/elixir/test/basics_test.exs
+++ b/test/elixir/test/basics_test.exs
@@ -509,7 +509,6 @@ defmodule BasicsTest do
     assert resp.status_code == 200
     assert resp.body == 1000
 
-    body = "999"
     resp = Couch.put("/#{db_name}/_revs_limit", body: "999")
     assert resp.status_code == 200
     assert resp.body["ok"] == true