refactor: fix credo warnings and format code
- Replace Enum.map/2 |> Enum.join/2 with Enum.map_join/3 for efficiency - Refactor get_existing_form_values to reduce cyclomatic complexity - Replace length/1 with Enum.empty?/1 for better performance - Update gettext translations
This commit is contained in:
parent
97c9ef670b
commit
98dc73ee37
10 changed files with 1180 additions and 159 deletions
|
|
@ -75,7 +75,7 @@ defmodule MvWeb.MemberLive.MembershipFeeIntegrationTest do
|
|||
|> Ash.Query.filter(member_id == ^member.id)
|
||||
|> Ash.read!()
|
||||
|
||||
if length(cycles) > 0 do
|
||||
if !Enum.empty?(cycles) do
|
||||
cycle = List.first(cycles)
|
||||
|
||||
# Change status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue