Remove redundant string operation.

This commit is contained in:
Karsten Loesing 2018-08-21 12:07:50 +02:00
parent 25998e1539
commit a1b07be296

View File

@ -264,7 +264,7 @@ public class RelayDirectoryImpl extends DescriptorImpl
sb.append("-----BEGIN RSA PUBLIC KEY-----\n"); sb.append("-----BEGIN RSA PUBLIC KEY-----\n");
String keyString = partsNoOpt[1]; String keyString = partsNoOpt[1];
while (keyString.length() > 64) { while (keyString.length() > 64) {
sb.append(keyString.substring(0, 64)).append(NL); sb.append(keyString, 0, 64).append(NL);
keyString = keyString.substring(64); keyString = keyString.substring(64);
} }
if (keyString.length() > 0) { if (keyString.length() > 0) {