Skip to content

WIP: some lints#58

Closed
liamsi wants to merge 2 commits intocosmos:developfrom
liamsi:lints
Closed

WIP: some lints#58
liamsi wants to merge 2 commits intocosmos:developfrom
liamsi:lints

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

Development

Successfully merging this pull request may close these issues.

1 participant