[tor-commits] [onionoo/master] Remove unnecessary null check.
karsten at torproject.org
karsten at torproject.org
Mon Aug 27 12:34:52 UTC 2018
commit 6deaf25b382869d3e25204213813c261d28d01ba
Author: Karsten Loesing <karsten.loesing at gmx.net>
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;
}
More information about the tor-commits
mailing list