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 unneeded casts in page.getParam #2186

Closed
wants to merge 2 commits into from
Closed

Remove unneeded casts in page.getParam #2186

wants to merge 2 commits into from

Conversation

samb1729
Copy link
Contributor

@samb1729 samb1729 commented Jun 6, 2016

Some calls to cast.To in getParam are no-ops that can be removed, since they just add type information that is discarded on return

@CLAassistant
Copy link

CLAassistant commented Jun 6, 2016

CLA assistant check
All committers have signed the CLA.

@moorereason
Copy link
Contributor

Curious how you found these. Are you using a linter?

@samb1729
Copy link
Contributor Author

samb1729 commented Jun 6, 2016

Just caught my eye when looking at Page's implementation. Why do you ask?

@moorereason
Copy link
Contributor

Then you have a good eye. 👍 I was asking about the linter because I don't know of an existing linter that would detect that issue.

lgtm

@samb1729
Copy link
Contributor Author

samb1729 commented Jun 6, 2016

Force pushed to my fork like an idiot and got another commit stuck in the mix, no changes in the new version

@bep bep closed this in 75deb92 Jun 9, 2016
tychoish pushed a commit to tychoish/hugo that referenced this pull request Aug 13, 2017
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants