[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [onionoo/release] Remove unnecessary null check.
commit 6deaf25b382869d3e25204213813c261d28d01ba
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Mon Aug 20 16:06:02 2018 +0200
Remove unnecessary null check.
---
src/main/java/org/torproject/onionoo/updater/TorVersion.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/torproject/onionoo/updater/TorVersion.java b/src/main/java/org/torproject/onionoo/updater/TorVersion.java
index d8e1683..6440283 100644
--- a/src/main/java/org/torproject/onionoo/updater/TorVersion.java
+++ b/src/main/java/org/torproject/onionoo/updater/TorVersion.java
@@ -104,7 +104,7 @@ public class TorVersion implements Comparable<TorVersion> {
@Override
public boolean equals(Object other) {
- return null != other && other instanceof TorVersion
+ return other instanceof TorVersion
&& this.compareTo((TorVersion) other) == 0;
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits