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

[tor-commits] [onionoo/master] Remove pointless assignment in NodeStatus



commit 6c94482adbd651d787ecc3c32d5d1d79395db7af
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date:   Tue Aug 14 14:21:06 2018 +0100

    Remove pointless assignment in NodeStatus
    
    Fixes: #27124
---
 src/main/java/org/torproject/onionoo/docs/NodeStatus.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/torproject/onionoo/docs/NodeStatus.java b/src/main/java/org/torproject/onionoo/docs/NodeStatus.java
index 63720d9..50c66f9 100644
--- a/src/main/java/org/torproject/onionoo/docs/NodeStatus.java
+++ b/src/main/java/org/torproject/onionoo/docs/NodeStatus.java
@@ -565,8 +565,7 @@ public class NodeStatus extends Document {
       if (!parts[14].equals("null")) {
         nodeStatus.setPortList(parts[14]);
       }
-      long firstSeenMillis = lastSeenMillis;
-      firstSeenMillis = DateTimeHelper.parse(parts[15] + " " + parts[16]);
+      long firstSeenMillis = DateTimeHelper.parse(parts[15] + " " + parts[16]);
       if (firstSeenMillis < 0L) {
         log.error("Parse exception while parsing node status "
             + "line '" + documentString + "'.  Skipping.");

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