[tor-commits] [collector/release] Remove unnecessary return statements.

karsten at torproject.org karsten at torproject.org
Mon Oct 15 14:39:13 UTC 2018


commit 18848615322dc38324975573308019aeb36fa39e
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Tue Aug 21 11:47:59 2018 +0200

    Remove unnecessary return statements.
---
 .../metrics/collector/bridgedescs/BridgeDescriptorParser.java           | 1 -
 .../metrics/collector/bridgedescs/SanitizedBridgesWriter.java           | 2 --
 2 files changed, 3 deletions(-)

diff --git a/src/main/java/org/torproject/metrics/collector/bridgedescs/BridgeDescriptorParser.java b/src/main/java/org/torproject/metrics/collector/bridgedescs/BridgeDescriptorParser.java
index c993d89..04460c8 100644
--- a/src/main/java/org/torproject/metrics/collector/bridgedescs/BridgeDescriptorParser.java
+++ b/src/main/java/org/torproject/metrics/collector/bridgedescs/BridgeDescriptorParser.java
@@ -48,7 +48,6 @@ public class BridgeDescriptorParser {
       }
     } catch (IOException e) {
       logger.warn("Could not parse or write bridge descriptor.", e);
-      return;
     }
   }
 }
diff --git a/src/main/java/org/torproject/metrics/collector/bridgedescs/SanitizedBridgesWriter.java b/src/main/java/org/torproject/metrics/collector/bridgedescs/SanitizedBridgesWriter.java
index 66a5685..1cab69f 100644
--- a/src/main/java/org/torproject/metrics/collector/bridgedescs/SanitizedBridgesWriter.java
+++ b/src/main/java/org/torproject/metrics/collector/bridgedescs/SanitizedBridgesWriter.java
@@ -659,7 +659,6 @@ public class SanitizedBridgesWriter extends CollecTorMain {
     } catch (IOException e) {
       logger.warn("Could not write sanitized bridge "
           + "network status to disk.", e);
-      return;
     }
   }
 
@@ -1050,7 +1049,6 @@ public class SanitizedBridgesWriter extends CollecTorMain {
       }
     } catch (ConfigurationException | IOException e) {
       logger.warn("Could not write sanitized server descriptor to disk.", e);
-      return;
     }
   }
 





More information about the tor-commits mailing list