mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-12 18:49:37 +02:00
chore: Add eslint-unicorn & fix
This commit is contained in:
@@ -324,7 +324,7 @@ const cutPathAtIntersect = (_points, boundryNode) => {
|
||||
pointPresent = pointPresent || (p.x === inter.x && p.y === inter.y);
|
||||
});
|
||||
// // if (!pointPresent) {
|
||||
if (!points.find((e) => e.x === inter.x && e.y === inter.y)) {
|
||||
if (!points.some((e) => e.x === inter.x && e.y === inter.y)) {
|
||||
points.push(inter);
|
||||
} else {
|
||||
log.warn('abc88 no intersect', inter, points);
|
||||
|
Reference in New Issue
Block a user