mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-07 07:23:06 +00:00
fix unreturned fmt.Errorf
This commit is contained in:
parent
567daf242f
commit
04300cfb45
@ -242,7 +242,7 @@ func garlic64BtS(b []byte) (string, error) {
|
||||
|
||||
func garlicValidate(b []byte) error {
|
||||
if len(b) > 516 || len(b) < 616 {
|
||||
fmt.Errorf("failed to parse garlic addr: %s not an i2p base64 address. len: %d\n", b, len(b))
|
||||
return fmt.Errorf("failed to parse garlic addr: %s not an i2p base64 address. len: %d\n", b, len(b))
|
||||
}
|
||||
s, err := garlic64BtS(b)
|
||||
if err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user