You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by do...@apache.org on 2021/01/03 11:42:56 UTC

[couchdb] 03/03: Switch from assert length === 0 to Enum.empty? as Credo suggests

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

dottorblaster pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit a89242d0dd8fb149e254c9ad546e1fded602f2dc
Author: Alessio Biancalana <do...@gmail.com>
AuthorDate: Sat Dec 19 18:58:52 2020 +0100

    Switch from assert length === 0 to Enum.empty? as Credo suggests
---
 test/elixir/test/all_docs_test.exs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/elixir/test/all_docs_test.exs b/test/elixir/test/all_docs_test.exs
index 5523565..935859b 100644
--- a/test/elixir/test/all_docs_test.exs
+++ b/test/elixir/test/all_docs_test.exs
@@ -420,7 +420,7 @@ defmodule AllDocsTest do
 
     resp = Couch.get("/#{db_name}/_all_docs", query: %{:end_key => 0}).body
     rows = resp["rows"]
-    assert length(rows) === 0
+    assert Enum.empty?(rows)
   end
 
   defp get_ids(resp) do