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

jan pushed a commit to branch auto-delete-3-plus-shard-move
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 701f95adf9a5a9614cb0fe7fd0a67829ef1971cf
Author: Robert Newson <rnew...@apache.org>
AuthorDate: Tue Jun 24 14:01:52 2025 +0100

    erlfmt for couch_db_split.erl
---
 src/couch/src/couch_db_split.erl | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/couch/src/couch_db_split.erl b/src/couch/src/couch_db_split.erl
index 7034c2fca..0e58816e5 100644
--- a/src/couch/src/couch_db_split.erl
+++ b/src/couch/src/couch_db_split.erl
@@ -336,10 +336,16 @@ copy_meta(#state{source_db = SourceDb, targets = Targets} 
= State) ->
     ),
     State#state{targets = Targets1}.
 
-spread(Amount, N) when is_integer(Amount), Amount >= 0, is_integer(N),  N > 0 
->
+spread(Amount, N) when is_integer(Amount), Amount >= 0, is_integer(N), N > 0 ->
     Div = Amount div N,
     Rem = Amount rem N,
-    [if I > Rem -> Div; true -> Div + 1 end || I <- lists:seq(1, N)].
+    [
+        if
+            I > Rem -> Div;
+            true -> Div + 1
+        end
+     || I <- lists:seq(1, N)
+    ].
 
 copy_purge_info(#state{source_db = Db} = State) ->
     {ok, NewState} = couch_db:fold_purge_infos(Db, fun purge_cb/2, State),

Reply via email to