mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-03 00:45:29 +01:00
6c3179029a
The nested conditional operators mapping DerailReason and the verdict of the criteria to derailment::reason in Derail(), derail() and derail_in_collision() go into the switch of reason_of() (S3358), and the log of Derail() into log_derailment(); Derail() returns early instead of nesting its body (S3776). The behaviour stays the same for every caller.