appease linter
parent
e68554cee9
commit
052c2ec1d1
@ -1,21 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import "log"
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
c := make(chan struct{})
|
|
||||||
|
|
||||||
close(c)
|
|
||||||
|
|
||||||
close(c)
|
|
||||||
|
|
||||||
select {
|
|
||||||
case <-c:
|
|
||||||
log.Println("hmm")
|
|
||||||
}
|
|
||||||
|
|
||||||
select {
|
|
||||||
case <-c:
|
|
||||||
log.Println("okay")
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,11 @@
|
|||||||
|
dependencies:
|
||||||
|
post:
|
||||||
|
# install golint
|
||||||
|
- go get golang.org/x/lint/golint
|
||||||
|
|
||||||
|
test:
|
||||||
|
pre:
|
||||||
|
# run analysis before tests
|
||||||
|
- go vet ./...
|
||||||
|
- test -z "$(golint ./... | tee /dev/stderr)"
|
||||||
|
- test -z "$(gofmt -s -l . | tee /dev/stderr)"
|
Loading…
Reference in New Issue