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

[tor-commits] [exonerator/master] Avoid unnecessary continue and empty block.



commit e50f0204455c68b9b785232640cf289f4be827e1
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Wed Nov 20 15:51:57 2019 +0100

    Avoid unnecessary continue and empty block.
---
 .../torproject/metrics/exonerator/ExoneraTorDatabaseImporter.java   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/main/java/org/torproject/metrics/exonerator/ExoneraTorDatabaseImporter.java b/src/main/java/org/torproject/metrics/exonerator/ExoneraTorDatabaseImporter.java
index 57eb5df..fcc534f 100644
--- a/src/main/java/org/torproject/metrics/exonerator/ExoneraTorDatabaseImporter.java
+++ b/src/main/java/org/torproject/metrics/exonerator/ExoneraTorDatabaseImporter.java
@@ -76,14 +76,10 @@ public class ExoneraTorDatabaseImporter {
     try {
       BufferedReader br = new BufferedReader(new FileReader(configFile));
       while ((line = br.readLine()) != null) {
-        if (line.startsWith("#") || line.length() < 1) {
-          continue;
-        } else if (line.startsWith("ExoneraTorDatabaseJdbc")) {
+        if (line.startsWith("ExoneraTorDatabaseJdbc")) {
           jdbcString = line.split(" ")[1];
         } else if (line.startsWith("ExoneraTorImportDirectory")) {
           importDirString = line.split(" ")[1];
-        } else {
-          /* Ignore unrecognized configuration keys. */
         }
       }
       br.close();



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