Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph committed Nov 15, 2024
1 parent 438518a commit 54d4a01
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions front/lib/api/data_source_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 54d4a01

Please sign in to comment.