diff --git a/src/api/ateliereLive/pipelines/multiviews/multiviews.ts b/src/api/ateliereLive/pipelines/multiviews/multiviews.ts index 12926b3..5f24a86 100644 --- a/src/api/ateliereLive/pipelines/multiviews/multiviews.ts +++ b/src/api/ateliereLive/pipelines/multiviews/multiviews.ts @@ -38,9 +38,6 @@ export async function createMultiviewForPipeline( productionSettings: ProductionSettings, sourceRefs: SourceReference[] ): Promise { - // TODO Check if this can be cleaned out. This is an old code and dont know the purpose of it, therefor I dont want to remove it yet. - // const multiviewPresets = await getMultiviewPresets(); - const pipeline = productionSettings.pipelines.find((p) => p.multiviews ? p.multiviews?.length > 0 : undefined ); diff --git a/src/api/ateliereLive/pipelines/streams/streams.ts b/src/api/ateliereLive/pipelines/streams/streams.ts index 7cbd58e..fc5e108 100644 --- a/src/api/ateliereLive/pipelines/streams/streams.ts +++ b/src/api/ateliereLive/pipelines/streams/streams.ts @@ -252,8 +252,6 @@ export async function createStream( streams: sourceToPipelineStreams } }; - // TODO Check if this can be cleaned out. This is an old code and dont know the purpose of it, therefor I dont want to remove it yet. - // return sourceToPipelineStreams; } const updatedViewsForSource = viewsForSource.map((v) => { return { ...v, label: source.name }; diff --git a/src/api/manager/job/syncInventory.ts b/src/api/manager/job/syncInventory.ts index 09e358c..2e813d0 100644 --- a/src/api/manager/job/syncInventory.ts +++ b/src/api/manager/job/syncInventory.ts @@ -7,8 +7,7 @@ import { WithId } from 'mongodb'; type SourceWithoutLastConnected = Omit; -// TODO: getSourcesFromAPI should return ResourcesSourceResponse and changed to our model later -async function getSourcesFromAPI() { +async function getSourcesFromAPI(): Promise { const ingests = await getIngests(); const resolvedIngests = ( await Promise.allSettled(ingests.map((ingest) => getIngest(ingest.uuid))) diff --git a/src/components/inventory/Inventory.tsx b/src/components/inventory/Inventory.tsx index 8a46c43..dacb262 100644 --- a/src/components/inventory/Inventory.tsx +++ b/src/components/inventory/Inventory.tsx @@ -41,9 +41,7 @@ export default function Inventory() { function getSourcesToDisplay( filteredSources: Map ): React.ReactNode { - return Array.from( - filteredSources.size >= 0 ? filteredSources.values() : sources.values() - ).map((source, index) => { + return Array.from(filteredSources.values()).map((source, index) => { if (source.status !== 'purge') { return (