[tor-commits] [collector/master] Fix double assignment found by FindBugs.

karsten at torproject.org karsten at torproject.org
Fri Sep 30 13:48:49 UTC 2016


commit 4f556ca13eb0bcdf881e55e75ab24ec0c99eb39e
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Wed Sep 28 20:17:12 2016 +0200

    Fix double assignment found by FindBugs.
---
 .../org/torproject/collector/bridgedescs/SanitizedBridgesWriter.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/torproject/collector/bridgedescs/SanitizedBridgesWriter.java b/src/main/java/org/torproject/collector/bridgedescs/SanitizedBridgesWriter.java
index e09691c..78e32b6 100644
--- a/src/main/java/org/torproject/collector/bridgedescs/SanitizedBridgesWriter.java
+++ b/src/main/java/org/torproject/collector/bridgedescs/SanitizedBridgesWriter.java
@@ -757,8 +757,7 @@ public class SanitizedBridgesWriter extends CollecTorMain {
           scrubbedDesc = scrubbedRouterLine;
           if (scrubbedOrAddresses != null) {
             for (String scrubbedOrAddress : scrubbedOrAddresses) {
-              scrubbedDesc = scrubbedDesc += "or-address "
-                  + scrubbedOrAddress + "\n";
+              scrubbedDesc += "or-address " + scrubbedOrAddress + "\n";
             }
           }
           scrubbedDesc += scrubbed.toString();





More information about the tor-commits mailing list