summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarren Smith <garren.smith@gmail.com>2018-10-19 10:44:56 +0200
committerGarren Smith <garren.smith@gmail.com>2018-10-19 10:44:56 +0200
commit81fc935e675b6e7089e3f2ac72094c54cc304e52 (patch)
tree9e0de10dd50b9042406ef055467cf43bd2e735bd
parentd10556170ec2d12f6ccb59fb02b9f5a54f498e47 (diff)
downloadcouchdb-partition-review-fixes.tar.gz
clean up restrictionspartition-review-fixes
-rw-r--r--src/chttpd/src/chttpd_view.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chttpd/src/chttpd_view.erl b/src/chttpd/src/chttpd_view.erl
index c1dc186b1..0b7c3e127 100644
--- a/src/chttpd/src/chttpd_view.erl
+++ b/src/chttpd/src/chttpd_view.erl
@@ -147,12 +147,12 @@ handle_partition_view_req(Req, _Db, _DDoc, _Pk) ->
check_partition_restrictions(#mrargs{} = Args) ->
Restrictions = [
- {<<"include_docs">>, Args#mrargs.include_docs, true},
- {<<"stable">>, Args#mrargs.stable, true},
- {<<"conflicts">>, Args#mrargs.conflicts, true}
+ {<<"include_docs">>, Args#mrargs.include_docs},
+ {<<"stable">>, Args#mrargs.stable},
+ {<<"conflicts">>, Args#mrargs.conflicts}
],
- lists:foreach(fun ({Param, ArgValue, RestrictedValue}) ->
- case ArgValue =:= RestrictedValue of
+ lists:foreach(fun ({Param, ArgValue}) ->
+ case ArgValue =:= true of
true ->
Msg = [<<"`">>, Param, <<"=true` is not supported in this view.">>],
throw({bad_request, ?l2b(Msg)});