Refactor: Remove Redundant Variable Assignment in getPlayableObjects (#9309)

This commit is contained in:
DeepCrimson 2022-07-22 20:07:51 -07:00 committed by GitHub
parent 9843f38c40
commit 97b34e3129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4167,10 +4167,7 @@ public abstract class PlayerImpl implements Player, Serializable {
}
}
}
// collect stats
PlayableObjectsList playableObjectsList = new PlayableObjectsList(playableObjects);
return playableObjectsList;
return new PlayableObjectsList(playableObjects);
}
private void putToPlayableObjects(Map<UUID, List<ActivatedAbility>> playableObjects, UUID objectId, ActivatedAbility ability) {