disintegration / imaging

Imaging is a simple image processing package for Go
MIT License
5.3k stars 443 forks source link

rewrite if-else to switch statement #90

Closed sosiska closed 5 years ago

sosiska commented 5 years ago

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 commented 5 years ago

Coverage Status

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

disintegration commented 5 years ago

LGTM. Thank you for the contribution!