mirror of
https://github.com/torproject/metrics-lib.git
synced 2024-11-27 11:10:34 +00:00
Remove redundant string operation.
This commit is contained in:
parent
25998e1539
commit
a1b07be296
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user