Simplify an if

This commit is contained in:
TacoTheDank 2020-05-31 02:22:44 -04:00
parent 9eeebc67ee
commit 634322af33
1 changed files with 1 additions and 5 deletions

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() {