From 0d453ed0c5b9fd078ca9b04a7387dcfa647802c5 Mon Sep 17 00:00:00 2001 From: Alessio Biancalana Date: Sat, 19 Dec 2020 18:58:52 +0100 Subject: 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 5523565a4..935859b29 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 -- cgit v1.2.1