[tor-commits] [onionoo/release] Remove redundant local variable.

karsten at torproject.org karsten at torproject.org
Thu Nov 28 09:20:38 UTC 2019


commit e27191a0a735558d4d261934b1be8b4fe51089a6
Author: Karsten Loesing <karsten.loesing at gmx.net>
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(





More information about the tor-commits mailing list