mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
mobile: prefer nil slices over zero-length slices
This commit is contained in:
parent
ba90a4aaa4
commit
66c38105d2
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ func (ni *NodeInfo) GetDiscoveryPort() int { return ni.info.Ports.Discovery
|
|||
func (ni *NodeInfo) GetListenerPort() int { return ni.info.Ports.Listener }
|
||||
func (ni *NodeInfo) GetListenerAddress() string { return ni.info.ListenAddr }
|
||||
func (ni *NodeInfo) GetProtocols() *Strings {
|
||||
protos := []string{}
|
||||
var protos []string
|
||||
for proto := range ni.info.Protocols {
|
||||
protos = append(protos, proto)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue