We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a845564 commit 94aaddaCopy full SHA for 94aadda
2 files changed
lib/igniter/project/mix_project.ex
@@ -278,7 +278,7 @@ defmodule Igniter.Project.MixProject do
278
end
279
280
defp ensure_path!(path) do
281
- non_empty? = Enum.count(path) <= 0
+ non_empty? = Enum.empty?(path)
282
all_atoms? = Enum.all?(path, &is_atom(&1))
283
284
if non_empty? or not all_atoms? do
test/igniter/rm_test.exs
@@ -109,7 +109,7 @@ defmodule Igniter.RmTest do
109
110
# File should still be in rms and should have an issue
111
assert "lib/example.ex" in igniter.rms
112
- assert length(igniter.issues) > 0
+ refute Enum.empty?(igniter.issues)
113
assert Enum.any?(igniter.issues, &String.contains?(&1, "lib/example.ex"))
114
115
0 commit comments