perf: findAny().isPresent() is cleaner here

This commit is contained in:
Breno A.
2024-06-09 09:42:43 -03:00
Unverified
parent b7735295f1
commit 33d5c5238a
@@ -83,7 +83,7 @@ public final class TeamManager extends BasePlayerDataManager {
int embryoId = 0;
// add from default
if (Arrays.stream(GameConstants.DEFAULT_TEAM_ABILITY_STRINGS).count() > 0) {
if (Arrays.stream(GameConstants.DEFAULT_TEAM_ABILITY_STRINGS).findAny().isPresent()) {
List<String> teamAbilties =
Arrays.stream(GameConstants.DEFAULT_TEAM_ABILITY_STRINGS).toList();
for (String skill : teamAbilties) {