fix indentation, remove superflous else clause
This commit is contained in:
parent
39d96a45aa
commit
bb3cbf2dda
@ -47,7 +47,8 @@ void DescriptionFactory::SetStartSegment(const PhantomNode &source, const bool t
|
||||
(traversed_in_reverse ? source.reverse_weight : source.forward_weight);
|
||||
const TravelMode travel_mode =
|
||||
(traversed_in_reverse ? source.backward_travel_mode : source.forward_travel_mode);
|
||||
AppendSegment(source.location,
|
||||
AppendSegment(
|
||||
source.location,
|
||||
PathData(0, source.name_id, TurnInstruction::HeadOn, segment_duration, travel_mode));
|
||||
BOOST_ASSERT(path_description.back().duration == segment_duration);
|
||||
}
|
||||
@ -97,10 +98,7 @@ void DescriptionFactory::AppendSegment(const FixedPointCoordinate &coordinate,
|
||||
{
|
||||
return TurnInstruction::GoStraight;
|
||||
}
|
||||
else
|
||||
{
|
||||
return path_point.turn_instruction;
|
||||
}
|
||||
}();
|
||||
|
||||
path_description.emplace_back(coordinate,
|
||||
|
Loading…
Reference in New Issue
Block a user