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

WIP: some lints #58

Closed
wants to merge 2 commits into from
Closed

WIP: some lints #58

wants to merge 2 commits into from

Conversation

liamsi
Copy link
Contributor

@liamsi liamsi commented May 7, 2018

Some nitpicks I've stumbled upon while reading through the code (and while using golint / gometalinter).

  • consistently named receiver
  • remove obsolete if blocks 1)

Low priority PR ...


1) "In the Go libraries, you'll find that when an if statement doesn't flow into the next statement—that is, the body ends in break, continue, goto, or return—the unnecessary else is omitted." source

 - remove obsolete else-blocks; consistency with rest of the code
   (golint / see also https://golang.org/doc/effective_go.html#if)
 - consistent receiver (s/tree/t)
This was referenced Jun 29, 2018
@liamsi
Copy link
Contributor Author

liamsi commented Jul 3, 2018

Superseded by #80

@liamsi liamsi closed this Jul 3, 2018
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.

1 participant