rm empty slice alloc

This commit is contained in:
Yusef Napora 2020-05-19 10:45:31 -04:00 committed by vyzo
parent d57a6c23da
commit d4b7c255c6
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ func (t *tagTracer) nearFirstPeers(msg *Message) []peer.ID {
defer t.Unlock()
peersMap, ok := t.nearFirst[t.msgID(msg.Message)]
if !ok {
return []peer.ID{}
return nil
}
peers := make([]peer.ID, 0, len(peersMap))
for p := range peersMap {