mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 12:47:36 +03:00
fix linter warning in server test
This commit is contained in:
parent
f79f7f7724
commit
caec66b927
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue