simplify code for readability, no need for null check before instanceof check
This commit is contained in:
parent
d39952e048
commit
e0bf54c304
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ public class LbryUri {
|
|||
return toString().hashCode();
|
||||
}
|
||||
public boolean equals(Object o) {
|
||||
if (o == null || !(o instanceof LbryUri)) {
|
||||
if (!(o instanceof LbryUri)) {
|
||||
return false;
|
||||
}
|
||||
return toString().equalsIgnoreCase(o.toString());
|
||||
|
|
Loading…
Reference in a new issue