Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make linter happy by changing if-else chain to a switch.
More background on this can be found in [1]. In short: Go's switch statement is kinda different to C's (or Java's, f.e.) and can (or should, as it is idiomatic Go) be used instead of if-else chains. [1] https://golang.org/doc/effective_go.html#switch
- Loading branch information