Skip to content
This repository was archived by the owner on Jul 13, 2024. It is now read-only.

Commit 77293af

Browse files
committed
Refactor code with helper
1 parent 9f1e225 commit 77293af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitgraph.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@
764764
this.pushPath(this.startPoint);
765765
// Add a path joint to startpoint + template spacing
766766
// So that line will not go through commit of other branches
767-
if ((this.parent.orientation === "vertical-reverse") || (this.parent.orientation === "vertical")) {
767+
if (_isVertical(this.parent)) {
768768
this.pushPath({
769769
x: commit.x,
770770
y: this.startPoint.y - this.template.commit.spacingY,

0 commit comments

Comments
 (0)