Skip to content

Commit

Permalink
Add nolint directive for forbidigo
Browse files Browse the repository at this point in the history
  • Loading branch information
stv0g committed Apr 18, 2023
1 parent ab3e9f2 commit 23bfc11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stuntest/udp_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func NewUDPServer(

udpConn, err := net.ListenUDP(network, &net.UDPAddr{IP: net.ParseIP(ip), Port: 0})
if err != nil {
t.Fatal(err)
t.Fatal(err) //nolint:forbidigo
}

// necessary for ipv6
// Necessary for IPv6
address := fmt.Sprintf("%s:%d", ip, udpConn.LocalAddr().(*net.UDPAddr).Port) //nolint:forcetypeassert
serverAddr, err := net.ResolveUDPAddr(network, address)
if err != nil {
Expand Down

0 comments on commit 23bfc11

Please sign in to comment.