Remove redundant code

This commit is contained in:
Raffson 2024-02-04 20:35:36 +01:00
parent a30bfd2a45
commit 7a94db5404
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -40,11 +40,6 @@ class SquadronConfig:
secondary = [FlightType(s) for s in secondary_raw] secondary = [FlightType(s) for s in secondary_raw]
max_size = data.get("size", DEFAULT_SQUADRON_SIZE) max_size = data.get("size", DEFAULT_SQUADRON_SIZE)
if max_size is None:
raise RuntimeError(
"Squadron's size is defined in campaign but is missing a value:\n"
f"{data}"
)
return SquadronConfig( return SquadronConfig(
FlightType(data["primary"]), FlightType(data["primary"]),