[tor-commits] [exonerator/release] Inline redundant local variables.
karsten at torproject.org
karsten at torproject.org
Tue Aug 28 10:24:00 UTC 2018
commit dc87c84ca3d97c67f7d290f2299db83eb0766a69
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Tue Aug 21 14:10:14 2018 +0200
Inline redundant local variables.
---
src/main/java/org/torproject/metrics/exonerator/QueryServlet.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/torproject/metrics/exonerator/QueryServlet.java b/src/main/java/org/torproject/metrics/exonerator/QueryServlet.java
index 556d8d3..d597b4e 100644
--- a/src/main/java/org/torproject/metrics/exonerator/QueryServlet.java
+++ b/src/main/java/org/torproject/metrics/exonerator/QueryServlet.java
@@ -175,8 +175,7 @@ public class QueryServlet extends HttpServlet {
for (int i = 0; i < address24Bytes.length; i++) {
address24Bytes[i] = (byte) Integer.parseInt(relayIpParts[i]);
}
- String address24 = Hex.encodeHexString(address24Bytes);
- return address24;
+ return Hex.encodeHexString(address24Bytes);
}
private String convertIpV6ToHex(String relayIp) {
More information about the tor-commits
mailing list