Skip to content

Commit 858527c

Browse files
committed
chore: fix linting issues
1 parent 1ef2cdf commit 858527c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/job-worker/src/playout/lookahead/findObjects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { JobContext } from '../../jobs/index.js'
1313
import { PartAndPieces, PieceInstanceWithObjectMap } from './util.js'
1414
import { deserializePieceTimelineObjectsBlob } from '@sofie-automation/corelib/dist/dataModel/Piece'
1515
import { ReadonlyDeep, SetRequired } from 'type-fest'
16-
import { computeLookaheadObject } from './lookaheadOffset'
16+
import { computeLookaheadObject } from './lookaheadOffset.js'
1717

1818
export function getBestPieceInstanceId(piece: ReadonlyDeep<PieceInstance>): string {
1919
if (!piece.isTemporary || piece.partInstanceId) {

packages/job-worker/src/playout/lookahead/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { LookaheadTimelineObject } from './findObjects.js'
2424
import { hasPieceInstanceDefinitelyEnded } from '../timeline/lib.js'
2525
import { DBPart } from '@sofie-automation/corelib/dist/dataModel/Part'
2626
import { ReadonlyDeep } from 'type-fest'
27-
import { filterPieceInstancesForNextPartWithOffset } from './lookaheadOffset'
27+
import { filterPieceInstancesForNextPartWithOffset } from './lookaheadOffset.js'
2828

2929
const LOOKAHEAD_OBJ_PRIORITY = 0.1
3030

@@ -112,7 +112,7 @@ export async function getLookeaheadObjects(
112112
nowInPart: partInstancesInfo0.current.nowInPart,
113113
allPieces: getPrunedEndedPieceInstances(partInstancesInfo0.current),
114114
calculatedTimings: partInstancesInfo0.current.calculatedTimings,
115-
})
115+
})
116116
: undefined,
117117
next: partInstancesInfo0.next
118118
? removeInfiniteContinuations({
@@ -124,7 +124,7 @@ export async function getLookeaheadObjects(
124124
playoutModel.playlist.nextTimeOffset
125125
),
126126
calculatedTimings: partInstancesInfo0.next.calculatedTimings,
127-
})
127+
})
128128
: undefined,
129129
}
130130

packages/job-worker/src/playout/lookahead/lookaheadOffset.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { PartInstanceId } from '@sofie-automation/corelib/dist/dataModel/Ids'
22
import { TimelineObjType } from '@sofie-automation/corelib/dist/dataModel/Timeline'
33
import { literal } from '@sofie-automation/corelib/dist/lib'
44
import { protectString, unprotectString } from '@sofie-automation/corelib/dist/protectedString'
5-
import { getBestPieceInstanceId, LookaheadTimelineObject } from './findObjects'
6-
import { PartAndPieces, PieceInstanceWithObjectMap } from './util'
5+
import { getBestPieceInstanceId, LookaheadTimelineObject } from './findObjects.js'
6+
import { PartAndPieces, PieceInstanceWithObjectMap } from './util.js'
77
import { TimelineEnable } from 'superfly-timeline'
88
import { TimelineObjectCoreExt } from '@sofie-automation/blueprints-integration'
99
import { PieceInstanceWithTimings } from '@sofie-automation/corelib/dist/playout/processAndPrune'
@@ -177,7 +177,7 @@ export function filterPieceInstancesForNextPartWithOffset(
177177
for (const p of pieces) {
178178
const layer = p.piece.outputLayerId || '__noLayer__'
179179
if (!layers.has(layer)) layers.set(layer, [])
180-
layers.get(layer)!.push(p)
180+
layers.get(layer)?.push(p)
181181
}
182182

183183
const result: PieceInstanceWithTimings[] = []

0 commit comments

Comments
 (0)