Commit 639b9ebd authored by tordinge's avatar tordinge
Browse files

use faster lastIndexOf(char) instead of lastIndexOf(String)

parent eb3ef031
......@@ -244,7 +244,7 @@ public class ExoneraTorDatabaseImporter {
orAddresses.add(entry.getAddress());
for (String orAddressAndPort : entry.getOrAddresses()) {
orAddresses.add(orAddressAndPort.substring(0,
orAddressAndPort.lastIndexOf(":")));
orAddressAndPort.lastIndexOf(':')));
}
importStatusentry(validAfter, fingerprintBase64, nickname,
exit, orAddresses);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment