Skip to content

Commit 94aadda

Browse files
committed
chore: credo
1 parent a845564 commit 94aadda

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/igniter/project/mix_project.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ defmodule Igniter.Project.MixProject do
278278
end
279279

280280
defp ensure_path!(path) do
281-
non_empty? = Enum.count(path) <= 0
281+
non_empty? = Enum.empty?(path)
282282
all_atoms? = Enum.all?(path, &is_atom(&1))
283283

284284
if non_empty? or not all_atoms? do

test/igniter/rm_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ defmodule Igniter.RmTest do
109109

110110
# File should still be in rms and should have an issue
111111
assert "lib/example.ex" in igniter.rms
112-
assert length(igniter.issues) > 0
112+
refute Enum.empty?(igniter.issues)
113113
assert Enum.any?(igniter.issues, &String.contains?(&1, "lib/example.ex"))
114114
end
115115

0 commit comments

Comments
 (0)