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

[tor-commits] [metrics-lib/master] Remove unnecessary null check.



commit 880d1437872d80c5e086a3a5814a57f39632b31c
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Mon Aug 20 16:05:46 2018 +0200

    Remove unnecessary null check.
---
 src/main/java/org/torproject/descriptor/log/WebServerAccessLogLine.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/torproject/descriptor/log/WebServerAccessLogLine.java b/src/main/java/org/torproject/descriptor/log/WebServerAccessLogLine.java
index 8a17230..a4acc5f 100644
--- a/src/main/java/org/torproject/descriptor/log/WebServerAccessLogLine.java
+++ b/src/main/java/org/torproject/descriptor/log/WebServerAccessLogLine.java
@@ -166,7 +166,7 @@ public class WebServerAccessLogLine implements WebServerAccessLog.Line {
 
   @Override
   public boolean equals(Object other) {
-    if (null != other && other instanceof WebServerAccessLogLine) {
+    if (other instanceof WebServerAccessLogLine) {
       return this.toLogString()
           .equals(((WebServerAccessLogLine)other).toLogString());
     }



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