Skip to content

Commit

Permalink
Switch streetMode conditional order
Browse files Browse the repository at this point in the history
  • Loading branch information
ansoncfit committed Jan 25, 2024
1 parent 44533c0 commit e611e93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public MultistageTraversalTimeCalculator (TraversalTimeCalculator base, List<Cos
public int traversalTimeSeconds (EdgeStore.Edge currentEdge, StreetMode streetMode, ProfileRequest req) {
final int baseTraversalTimeSeconds = base.traversalTimeSeconds(currentEdge, streetMode, req);
int t = baseTraversalTimeSeconds;
if (!streetMode.equals(StreetMode.CAR)) {
if (!StreetMode.CAR.equals(streetMode)) {
for (CostField costField : costFields) {
t += costField.additionalTraversalTimeSeconds(currentEdge, baseTraversalTimeSeconds);
}
Expand Down

0 comments on commit e611e93

Please sign in to comment.