[tor-commits] [metrics-web/master] Remove unnecessary continue statements.
karsten at torproject.org
karsten at torproject.org
Mon Aug 27 12:35:18 UTC 2018
commit 482a8dd7ebd0e7df3a54eb535baa8c079ae412b0
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Tue Aug 21 15:19:47 2018 +0200
Remove unnecessary continue statements.
---
src/main/java/org/torproject/metrics/stats/hidserv/DocumentStore.java | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/main/java/org/torproject/metrics/stats/hidserv/DocumentStore.java b/src/main/java/org/torproject/metrics/stats/hidserv/DocumentStore.java
index 61b9fa8..f3163e1 100644
--- a/src/main/java/org/torproject/metrics/stats/hidserv/DocumentStore.java
+++ b/src/main/java/org/torproject/metrics/stats/hidserv/DocumentStore.java
@@ -132,11 +132,9 @@ public class DocumentStore<T extends Document> {
&& !(formattedString0 + line.substring(1))
.startsWith(prefix)) {
/* Skip combined line not starting with prefix. */
- continue;
} else if (prefix.length() > 0
&& !formattedString0.startsWith(prefix)) {
/* Skip line not starting with prefix. */
- continue;
} else {
T document = this.clazz.newInstance();
if (!document.parse(new String[] { formattedString0,
More information about the tor-commits
mailing list