fix linter warning in server test

This commit is contained in:
Lucas Clemente 2016-05-15 15:38:43 +02:00
parent f79f7f7724
commit caec66b927

View file

@ -104,7 +104,8 @@ var _ = Describe("Server", func() {
return err
}
data := make([]byte, 1000)
n, _, err := conn.ReadFromUDP(data)
var n int
n, _, err = conn.ReadFromUDP(data)
if err != nil {
return err
}
@ -142,7 +143,8 @@ var _ = Describe("Server", func() {
return err
}
data := make([]byte, 1000)
n, _, err := conn.ReadFromUDP(data)
var n int
n, _, err = conn.ReadFromUDP(data)
if err != nil {
return err
}