Skip to content

Commit bc575f8

Browse files
authored
Merge pull request agones-dev#139 from Deleplace/go-vet-20180313
go vet: 3 warnings, 2 of them are easy.
2 parents cd435e0 + 306e4b5 commit bc575f8

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

examples/simple-udp/server/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ func doHealth(sdk *sdk.SDK, stop <-chan bool) {
107107
case <-stop:
108108
log.Print("Stopped health pings")
109109
return
110-
break
111110
case <-tick:
112111
}
113112
}

pkg/gameservers/helper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func testHTTPHealth(t *testing.T, url string, expectedResponse string, expectedS
144144
err := wait.PollImmediate(time.Second, 20*time.Second, func() (done bool, err error) {
145145
resp, err := http.Get(url)
146146
if err != nil {
147-
logrus.WithError(err).Error("Error connecting to %v", url)
147+
logrus.WithError(err).Error("Error connecting to ", url)
148148
return false, nil
149149
}
150150

0 commit comments

Comments
 (0)