Skip to content

Commit

Permalink
refactor(post_json): extract zip posts function
Browse files Browse the repository at this point in the history
fixes credo complexity issue
  • Loading branch information
unenglishable committed Dec 17, 2024
1 parent cf4bd49 commit cfefcd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/epochtalk_server_web/json/post_json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ defmodule EpochtalkServerWeb.Controllers.PostJSON do
unparsed_tuple
end

zip_posts(posts, parsed_body_list, parsed_signature_list)
end
defp zip_posts(posts, parsed_body_list, parsed_signature_list) do
# zip posts with body/signature lists
Enum.zip_with(
[posts, parsed_body_list, parsed_signature_list],
Expand Down

0 comments on commit cfefcd6

Please sign in to comment.