[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-lib/master] Simplify switch/case statement.



commit a18c70b33e89ac6a9c241860b15e46a1b54d0ea6
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Wed Nov 20 12:07:01 2019 +0100

    Simplify switch/case statement.
---
 src/main/java/org/torproject/descriptor/impl/ExitListImpl.java | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/main/java/org/torproject/descriptor/impl/ExitListImpl.java b/src/main/java/org/torproject/descriptor/impl/ExitListImpl.java
index bd5b2b6..b1ffa67 100644
--- a/src/main/java/org/torproject/descriptor/impl/ExitListImpl.java
+++ b/src/main/java/org/torproject/descriptor/impl/ExitListImpl.java
@@ -77,11 +77,7 @@ public class ExitListImpl extends DescriptorImpl implements ExitList {
           sb.append(line).append(ExitList.EOL);
           break;
         case "Published":
-          sb.append(line).append(ExitList.EOL);
-          break;
         case "LastStatus":
-          sb.append(line).append(ExitList.EOL);
-          break;
         case "ExitAddress":
           sb.append(line).append(ExitList.EOL);
           break;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits