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

Refactor internals #2

Merged
merged 3 commits into from
Jul 18, 2016
Merged

Refactor internals #2

merged 3 commits into from
Jul 18, 2016

Conversation

seizans
Copy link
Contributor

@seizans seizans commented Jul 16, 2016

I refactored internal codes.
(e.g. to use the standard URI module and URI struct)

If it is good, I hope you will merge it.

conn
|> paged_url(page)
|> page_link(rel)
defp maybe_add_prev(links, uri, page_number, total_pages) do
Copy link
Member

Choose a reason for hiding this comment

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

Let's drop the if/else and use guards for both maybe_add_prev/4 and maybe_add_next/4

@doomspork
Copy link
Member

Thanks @seizans! I've left some feedback for you to consider

@seizans
Copy link
Contributor Author

seizans commented Jul 17, 2016

@doomspork
Thank you for your kind feed back.
I fixed them.
Can you check it please?

@doomspork
Copy link
Member

Thank you @seizans 👍

@doomspork doomspork merged commit 7a54759 into beam-community:master Jul 18, 2016
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