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

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

commit 462d4aa7776b59af525890088048409cdf8e2c56
Author: Jay Doane <[email protected]>
AuthorDate: Sat Jun 18 08:22:28 2022 -0700

    Fix "variable bound multiple times" warning
---
 src/couch_mrview/src/couch_mrview_http.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch_mrview/src/couch_mrview_http.erl 
b/src/couch_mrview/src/couch_mrview_http.erl
index fa3fab386..9d35e873a 100644
--- a/src/couch_mrview/src/couch_mrview_http.erl
+++ b/src/couch_mrview/src/couch_mrview_http.erl
@@ -264,7 +264,7 @@ get_view_callback(_, _, true) ->
     fun view_cb/2;
 % if we are operating on the users db and we aren't
 % admin, filter the view
-get_view_callback(_DbName, _DbName, false) ->
+get_view_callback(_, _, false) ->
     fun filtered_view_cb/2;
 % non _users databases get all fields
 get_view_callback(_, _, _) ->

Reply via email to