1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-02-16 19:50:53 +01:00

Simplify an if

This commit is contained in:
TacoTheDank 2020-05-31 02:22:44 -04:00
parent 9eeebc67ee
commit 634322af33

View File

@ -92,11 +92,7 @@ public abstract class DrawableHolder {
} }
public static DrawableHolder parse(String str) { public static DrawableHolder parse(String str) {
DrawableHolder icon = builtin(str); return builtin(str);
if (icon != null) {
return icon;
}
return null;
} }
public static List<DrawableHolder> builtins() { public static List<DrawableHolder> builtins() {