mirror of
https://github.com/waku-org/go-multiaddr.git
synced 2025-02-23 11:38:20 +00:00
add comments and don't repeat myself as much
This commit is contained in:
parent
672c39fb9b
commit
946a6f66c0
@ -266,7 +266,7 @@ func garlic32StB(s string) ([]byte, error) {
|
|||||||
s += "="
|
s += "="
|
||||||
}
|
}
|
||||||
|
|
||||||
garlicHostBytes, err := garlicBase32Encoding.DecodeString(string(s))
|
garlicHostBytes, err := garlicBase32Encoding.DecodeString(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to decode base32 garlic addr: %s, err: %v len: %v",
|
return nil, fmt.Errorf("failed to decode base32 garlic addr: %s, err: %v len: %v",
|
||||||
s,
|
s,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user