add comments and don't repeat myself as much

This commit is contained in:
idk 2019-04-05 20:52:08 -04:00
parent 672c39fb9b
commit 946a6f66c0

View File

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