From 37bc34651a978f460c053dba7f423400613025e5 Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Mon, 28 Apr 2025 20:28:48 +0200 Subject: [PATCH] connection validator --- apps/app/src/lib/graph/connection.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/app/src/lib/graph/connection.ts b/apps/app/src/lib/graph/connection.ts index 64d2db3..8acc638 100644 --- a/apps/app/src/lib/graph/connection.ts +++ b/apps/app/src/lib/graph/connection.ts @@ -1,10 +1,10 @@ -import type { Connection} from '@xyflow/svelte'; +import type { Connection } from '@xyflow/svelte'; import type { EdgeBase } from '@xyflow/system'; export function isValidConnection(edge: EdgeBase | Connection) { - if (edge.source !== edge.target) { - return true; - } + if (edge.source !== edge.target) { + return true; + } - return false; - } \ No newline at end of file + return false; +}