[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [onionoo/master] Remove redundant local variable.
commit e27191a0a735558d4d261934b1be8b4fe51089a6
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Wed Nov 20 15:16:01 2019 +0100
Remove redundant local variable.
---
src/main/java/org/torproject/metrics/onionoo/docs/DocumentStore.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/torproject/metrics/onionoo/docs/DocumentStore.java b/src/main/java/org/torproject/metrics/onionoo/docs/DocumentStore.java
index 9489cba..81b428a 100644
--- a/src/main/java/org/torproject/metrics/onionoo/docs/DocumentStore.java
+++ b/src/main/java/org/torproject/metrics/onionoo/docs/DocumentStore.java
@@ -449,13 +449,12 @@ public class DocumentStore {
SortedSet<String> verifiedHostNames = null;
SortedSet<String> unverifiedHostNames = null;
Boolean recommendedVersion = null;
- SummaryDocument summaryDocument = new SummaryDocument(isRelay,
+ return new SummaryDocument(isRelay,
nickname, fingerprint, addresses, lastSeenMillis, running,
relayFlags, consensusWeight, countryCode, firstSeenMillis,
asNumber, asName, contact, family, family, version, operatingSystem,
verifiedHostNames, unverifiedHostNames,
recommendedVersion);
- return summaryDocument;
}
private <T extends Document> T retrieveDocumentFile(
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits