Data: Consolidate toBase32() code

This commit is contained in:
zzz
2024-08-09 09:45:55 -04:00
parent a8dbc29dcf
commit d35faf032b

View File

@@ -195,7 +195,7 @@ public class Destination extends KeysAndCert {
*/
public String toBase32() {
try {
return Base32.encode(getHash().getData()) + ".b32.i2p";
return getHash().toBase32();
} catch (IllegalStateException ise) {
return null;
}