You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2025/08/12 14:13:19 UTC
(couchdb) 05/06: gun takes iodata so no need to flatten
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch lucene-10
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 9d486da0db5d5608acb3aac6fd645d53da98d320
Author: Robert Newson <rn...@apache.org>
AuthorDate: Fri Aug 8 16:24:58 2025 +0100
gun takes iodata so no need to flatten
---
src/nouveau/src/nouveau_api.erl | 38 ++++++++++++++++----------------------
1 file changed, 16 insertions(+), 22 deletions(-)
diff --git a/src/nouveau/src/nouveau_api.erl b/src/nouveau/src/nouveau_api.erl
index 64f5a948a..026212c5c 100644
--- a/src/nouveau/src/nouveau_api.erl
+++ b/src/nouveau/src/nouveau_api.erl
@@ -217,33 +217,27 @@ set_seq(#index{} = Index, ReqBody) ->
%% private functions
index_path(Path) when is_binary(Path) ->
- lists:flatten(
- io_lib:format(
- "/index/~s",
- [
- couch_util:url_encode(Path)
- ]
- )
+ io_lib:format(
+ "/index/~s",
+ [
+ couch_util:url_encode(Path)
+ ]
);
index_path(#index{} = Index) ->
- lists:flatten(
- io_lib:format(
- "/index/~s",
- [
- couch_util:url_encode(nouveau_util:index_name(Index))
- ]
- )
+ io_lib:format(
+ "/index/~s",
+ [
+ couch_util:url_encode(nouveau_util:index_name(Index))
+ ]
).
doc_path(#index{} = Index, DocId) ->
- lists:flatten(
- io_lib:format(
- "/index/~s/doc/~s",
- [
- couch_util:url_encode(nouveau_util:index_name(Index)),
- couch_util:url_encode(DocId)
- ]
- )
+ io_lib:format(
+ "/index/~s/doc/~s",
+ [
+ couch_util:url_encode(nouveau_util:index_name(Index)),
+ couch_util:url_encode(DocId)
+ ]
).
search_path(IndexName) ->