payload: drop useless type declaration
golint suggests: pkg/network/payload/address.go:48:12: should omit type net.IP from declaration of var netip; it will be inferred from the right-hand side
This commit is contained in:
parent
288000a8af
commit
6029d5a888
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ func (p *AddressAndTime) EncodeBinary(bw *io.BinWriter) {
|
|||
|
||||
// IPPortString makes a string from IP and port specified.
|
||||
func (p *AddressAndTime) IPPortString() string {
|
||||
var netip net.IP = make(net.IP, 16)
|
||||
var netip = make(net.IP, 16)
|
||||
|
||||
copy(netip, p.IP[:])
|
||||
port := strconv.Itoa(int(p.Port))
|
||||
|
|
Loading…
Reference in a new issue