[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [collector/release] Remove unnecessary return statements.
commit 18848615322dc38324975573308019aeb36fa39e
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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;
}
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits