Simplify an if
This commit is contained in:
parent
9eeebc67ee
commit
634322af33
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue