mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Remove redundant code
This commit is contained in:
parent
a30bfd2a45
commit
7a94db5404
@ -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"]),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user