Skip to content

Commit d482c6a

Browse files
committed
Add parentheses to the left expression of the ternary conditional for better readability.
1 parent 57e2c85 commit d482c6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapmaker/routing/routedpath.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def draw_line(node_0, node_1, tolerance=0.1, separation=2000):
480480
end_coords = self.__graph.nodes[terminal_node]['geometry'].centroid.coords[0]
481481
end_point = coords_to_point(end_coords)
482482
heading = (end_point - start_point).angle
483-
bz_end_point = end_point - BezierPoint.fromAngle(heading) * 0.9 * ARROW_LENGTH if settings.get('pathArrows', False) else end_point
483+
bz_end_point = (end_point - BezierPoint.fromAngle(heading) * 0.9 * ARROW_LENGTH) if settings.get('pathArrows', False) else end_point
484484
bz = bezier_connect(start_point, bz_end_point, angle, heading)
485485
path_geometry[path_id].append(GeometricShape(
486486
bezier_to_linestring(bz), {

0 commit comments

Comments
 (0)