mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Minor technical improvement to a check in BoosterUtils.java.
This commit is contained in:
@@ -21,6 +21,8 @@ import java.util.ArrayList;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import com.google.common.base.Function;
|
import com.google.common.base.Function;
|
||||||
import com.google.common.base.Predicate;
|
import com.google.common.base.Predicate;
|
||||||
import com.google.common.base.Predicates;
|
import com.google.common.base.Predicates;
|
||||||
@@ -326,7 +328,7 @@ public final class BoosterUtils {
|
|||||||
*/
|
*/
|
||||||
public static List<InventoryItem> generateCardRewardList(final String s) {
|
public static List<InventoryItem> generateCardRewardList(final String s) {
|
||||||
|
|
||||||
if (s == null || s.length() < 2) {
|
if (StringUtils.isBlank(s)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user