From e0bf54c304065a40617d30a29742b3843f9f5454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patric=20Karlstr=C3=B6m?= Date: Tue, 12 Jan 2021 02:22:02 +0100 Subject: [PATCH] simplify code for readability, no need for null check before instanceof check --- app/src/main/java/io/lbry/browser/utils/LbryUri.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/lbry/browser/utils/LbryUri.java b/app/src/main/java/io/lbry/browser/utils/LbryUri.java index 2cecead7..6eb27eef 100644 --- a/app/src/main/java/io/lbry/browser/utils/LbryUri.java +++ b/app/src/main/java/io/lbry/browser/utils/LbryUri.java @@ -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());