mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/pss: Delinting
This commit is contained in:
parent
887eda209c
commit
3959cebad0
2 changed files with 2 additions and 8 deletions
|
|
@ -188,8 +188,5 @@ func (pssapi *API) GetPeerAddress(pubkeyhex string, topic Topic) (PssAddress, er
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkMsg(msg []byte) bool {
|
func checkMsg(msg []byte) bool {
|
||||||
if msg == nil || len(msg) == 0 {
|
return len(msg) > 0
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1041,8 +1041,5 @@ func (p *Pss) digestBytes(msg []byte) pssDigest {
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkAddress(addr PssAddress) bool {
|
func checkAddress(addr PssAddress) bool {
|
||||||
if len(addr) > addressLength {
|
return len(addr) <= addressLength
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue