Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored and anacrolix committed Jul 9, 2023
1 parent e88aae7 commit 20f5ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peerconn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func peerConnForPreferredNetworkDirection(
pc.Network = "udp"
}
if ipv6 {
pc.RemoteAddr = &net.TCPAddr{IP: net.ParseIP(fmt.Sprintf("::420"))}
pc.RemoteAddr = &net.TCPAddr{IP: net.ParseIP("::420")}
} else {
pc.RemoteAddr = &net.TCPAddr{IP: net.IPv4(1, 2, 3, 4)}
}
Expand Down

0 comments on commit 20f5ddb

Please sign in to comment.