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

rewrite if-else to switch statement #90

Merged
merged 1 commit into from
Mar 8, 2019
Merged

rewrite if-else to switch statement #90

merged 1 commit into from
Mar 8, 2019

Conversation

sosiska
Copy link
Contributor

@sosiska sosiska commented Mar 5, 2019

This commit rewrites if-else-if-else chain as a switch.
Based on Go style guide:
https://golang.org/doc/effective_go.html#switch

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling cfaa495 on sosiska:patch-1 into 5362c13 on disintegration:master.

@disintegration disintegration merged commit 061e8a7 into disintegration:master Mar 8, 2019
@disintegration
Copy link
Owner

LGTM. Thank you for the contribution!

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.

3 participants