Skip to content

Commit

Permalink
fix a validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
beru committed Aug 24, 2024
1 parent bffe8b7 commit 9ae0692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dagre.js
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ dagre.layout = (nodes, edges, layout, state) => {
const dir = calcDir(idx0, idx1);
dirTotal |= dir;
if (idx0 === idx1
|| Math.abs(idx0 - idx1) != 1
|| Math.abs(idx0 - idx1) !== 1
|| n0.in.length !== 1
|| n1.in.length !== 1
|| n0.out.length !== 1
Expand Down

0 comments on commit 9ae0692

Please sign in to comment.