Skip to content

Commit

Permalink
map_join for credo
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-s76 committed Mar 26, 2024
1 parent 8008058 commit 05b7c29
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ defmodule RecognizerWeb.Accounts.UserSettingsController do
{:ok, %{recovery_codes: recovery_codes}} ->
recovery_block =
recovery_codes
|> Enum.map(& &1.code)
|> Enum.join("\n")
|> Enum.map_join("\n", & &1.code)

conn
|> render("recovery_codes.html", recovery_block: recovery_block)
Expand Down

0 comments on commit 05b7c29

Please sign in to comment.