aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/pss
diff options
context:
space:
mode:
authorEmil <mursalimovemeel@gmail.com>2018-09-15 04:07:13 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-15 04:07:13 +0800
commit86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32 (patch)
tree92ee61a4d5a2c750b6abc257f30b040485e29842 /swarm/pss
parent7bb95a9a64c9d26bef4f15fdd9301bb0b5cdb668 (diff)
downloaddexon-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.gz
dexon-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.zst
dexon-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.zip
all: simplify s[:] to s where s is a slice (#17673)
Diffstat (limited to 'swarm/pss')
-rw-r--r--swarm/pss/pss.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/pss/pss.go b/swarm/pss/pss.go
index b55c97fdd..b96649fea 100644
--- a/swarm/pss/pss.go
+++ b/swarm/pss/pss.go
@@ -448,7 +448,7 @@ func (p *Pss) isSelfRecipient(msg *PssMsg) bool {
// test match of leftmost bytes in given message to node's Kademlia address
func (p *Pss) isSelfPossibleRecipient(msg *PssMsg) bool {
local := p.Kademlia.BaseAddr()
- return bytes.Equal(msg.To[:], local[:len(msg.To)])
+ return bytes.Equal(msg.To, local[:len(msg.To)])
}
/////////////////////////////////////////////////////////////////////