From 634322af33ac4019b478d7d8785f3d6b661c2eba Mon Sep 17 00:00:00 2001 From: TacoTheDank Date: Sun, 31 May 2020 02:22:44 -0400 Subject: [PATCH] Simplify an if --- .../org/mariotaku/twidere/model/tab/DrawableHolder.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/twidere/src/main/java/org/mariotaku/twidere/model/tab/DrawableHolder.java b/twidere/src/main/java/org/mariotaku/twidere/model/tab/DrawableHolder.java index 6249d6b75..7b5a61a04 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/model/tab/DrawableHolder.java +++ b/twidere/src/main/java/org/mariotaku/twidere/model/tab/DrawableHolder.java @@ -92,11 +92,7 @@ public abstract class DrawableHolder { } public static DrawableHolder parse(String str) { - DrawableHolder icon = builtin(str); - if (icon != null) { - return icon; - } - return null; + return builtin(str); } public static List builtins() {