Skip to content

Commit

Permalink
refactor to map_intersperse (#758)
Browse files Browse the repository at this point in the history
* refactor to map_intersperse

* revert commit
  • Loading branch information
bradhanks authored Jan 10, 2024
1 parent ef44515 commit 5692752
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/wallaby/selenium.ex
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,7 @@ defmodule Wallaby.Selenium do
keys =
case Enum.all?(keys, &is_local_file?(&1)) do
true ->
keys
|> Enum.map(fn key -> upload_file(element, key) end)
|> Enum.intersperse("\n")
keys |> Enum.map_intersperse("\n", fn key -> upload_file(element, key) end)

false ->
keys
Expand Down

0 comments on commit 5692752

Please sign in to comment.