From 49dee407c8a92f3403a7bae28e7f5cf8879cbb3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patric=20Karlstr=C3=B6m?= Date: Tue, 12 Jan 2021 02:12:30 +0100 Subject: [PATCH] No need for null check before instanceof --- app/src/main/java/io/lbry/browser/model/ClaimCacheKey.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/lbry/browser/model/ClaimCacheKey.java b/app/src/main/java/io/lbry/browser/model/ClaimCacheKey.java index 6f8c868b..d15b338a 100644 --- a/app/src/main/java/io/lbry/browser/model/ClaimCacheKey.java +++ b/app/src/main/java/io/lbry/browser/model/ClaimCacheKey.java @@ -40,7 +40,7 @@ public class ClaimCacheKey { @Override public boolean equals(@Nullable Object obj) { - if (obj == null || !(obj instanceof ClaimCacheKey)) { + if (!(obj instanceof ClaimCacheKey)) { return false; } ClaimCacheKey key = (ClaimCacheKey) obj;