Skip to content

Commit 73eaa68

Browse files
committed
Use Enum.each()
1 parent 2ce1171 commit 73eaa68

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/support/philomena_web/tag_changes.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ defmodule PhilomenaWeb.Test.TagChanges do
2727
removed_tags = Keyword.get(diff, :remove, [])
2828
current_tags = ctx.image.tags |> Enum.map(& &1.name)
2929

30-
for tag <- added_tags do
30+
Enum.each(added_tags, fn tag ->
3131
assert tag not in current_tags
32-
end
32+
end)
3333

34-
for tag <- removed_tags do
34+
Enum.each(removed_tags, fn tag ->
3535
assert tag in current_tags
36-
end
36+
end)
3737

3838
new_tags =
3939
current_tags

0 commit comments

Comments
 (0)