fix unreturned fmt.Errorf

This commit is contained in:
idk 2018-12-15 01:24:59 -05:00
parent 567daf242f
commit 04300cfb45
No known key found for this signature in database
GPG Key ID: D75C03B39B5E14E1

View File

@ -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 {