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:
Roman Khimov 2019-10-17 12:19:41 +03:00
parent 288000a8af
commit 6029d5a888

View file

@ -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))