simplify code for readability, no need for null check before instanceof check

This commit is contained in:
Patric Karlström 2021-01-12 02:22:02 +01:00
parent d39952e048
commit e0bf54c304

View file

@ -262,7 +262,7 @@ public class LbryUri {
return toString().hashCode(); return toString().hashCode();
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == null || !(o instanceof LbryUri)) { if (!(o instanceof LbryUri)) {
return false; return false;
} }
return toString().equalsIgnoreCase(o.toString()); return toString().equalsIgnoreCase(o.toString());