mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-08-26 06:11:06 +00:00
add comments and don't repeat myself as much
This commit is contained in:
+1
-1
@@ -266,7 +266,7 @@ func garlic32StB(s string) ([]byte, error) {
|
||||
s += "="
|
||||
}
|
||||
|
||||
garlicHostBytes, err := garlicBase32Encoding.DecodeString(string(s))
|
||||
garlicHostBytes, err := garlicBase32Encoding.DecodeString(s)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to decode base32 garlic addr: %s, err: %v len: %v",
|
||||
s,
|
||||
|
||||
Reference in New Issue
Block a user