Skip to content

Commit e63df98

Browse files
committed
refactor: simplify boolean logic (distributive law + complement law)
1 parent c5f3bcf commit e63df98

File tree

1 file changed

+1
-2
lines changed
  • Source/Orts.Simulation/Simulation/Signalling

1 file changed

+1
-2
lines changed

Source/Orts.Simulation/Simulation/Signalling/Signals.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11096,8 +11096,7 @@ private void getBlockState_notRouted()
1109611096

1109711097
// if section has signal at end stop check
1109811098

11099-
if (thisSection.EndSignals[direction] != null
11100-
|| (thisSection.CircuitType == TrackCircuitSection.TrackCircuitType.EndOfTrack && thisSection.EndSignals[direction] == null))
11099+
if (thisSection.EndSignals[direction] != null || thisSection.CircuitType == TrackCircuitSection.TrackCircuitType.EndOfTrack)
1110111100
{
1110211101
thisSection = null;
1110311102
}

0 commit comments

Comments
 (0)