Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
analysis/lint: don't print so many newlines for description
The Before and After had extraneous newlines; before: % staticcheck -explain S1000 Use plain channel send or receive instead of single-case select Select statements with a single case can be replaced with a simple send or receive. Before: select { case x := <-ch: fmt.Println(x) } After: x := <-ch fmt.Println(x) Available since 2017.1 Online documentation https://staticcheck.dev/docs/checks#S1000 And after: % staticcheck -explain S1000 Use plain channel send or receive instead of single-case select Select statements with a single case can be replaced with a simple send or receive. Before: select { case x := <-ch: fmt.Println(x) } After: x := <-ch fmt.Println(x) Available since 2017.1 Online documentation https://staticcheck.dev/docs/checks#S1000
- Loading branch information