From 54d4a012d8545de3810995eaba247959bcbc6667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daphn=C3=A9=20Popin?= Date: Fri, 15 Nov 2024 10:04:39 +0100 Subject: [PATCH] Simplify --- front/lib/api/data_source_view.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/front/lib/api/data_source_view.ts b/front/lib/api/data_source_view.ts index 3571a726dc4f..f0be3c5263cd 100644 --- a/front/lib/api/data_source_view.ts +++ b/front/lib/api/data_source_view.ts @@ -110,12 +110,7 @@ async function getContentNodesForManagedDataSourceView( if (connectorsRes.isErr()) { if (connectorsRes.error.type === "connector_rate_limit_error") { - return new Err( - new Error( - connectorsRes.error.message ?? - "An error occurred while fetching the resources' content nodes." - ) - ); + return new Err(new Error(connectorsRes.error.message)); } return new Err( new Error(