Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicates from the combined header list of the runtime headers and compile time headers #2

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

zillou
Copy link
Contributor

@zillou zillou commented Aug 30, 2023

No description provided.

defp dedup_headers(headers) do
headers
|> Enum.reduce(%{}, fn {k, v}, acc -> Map.put(acc, k, v) end)
|> Enum.map(fn {k, v} -> {k, v} end)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
|> Enum.map(fn {k, v} -> {k, v} end)
|> Map.to_list()

@fishtreesugar fishtreesugar merged commit 4eb68b5 into fishtreesugar:main Aug 30, 2023
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants