Skip to content

Commit f9e1a66

Browse files
miga-heygenclaude
andcommitted
style: format ffprobe files to pass CI format check
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent cf5e504 commit f9e1a66

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

‎packages/engine/src/utils/ffprobe.test.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,9 +1000,7 @@ describe("analyzeKeyframeIntervals — single-keyframe videos", () => {
10001000
});
10011001

10021002
it("returns non-problematic for zero keyframes (still image)", async () => {
1003-
const { spawn } = createSpawnSpy([
1004-
{ kind: "exit", code: 0, stdout: "\n" },
1005-
]);
1003+
const { spawn } = createSpawnSpy([{ kind: "exit", code: 0, stdout: "\n" }]);
10061004
vi.resetModules();
10071005
vi.doMock("child_process", () => ({ spawn }));
10081006

‎packages/engine/src/utils/ffprobe.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,12 +1102,7 @@ async function probeStreamDurationSeconds(filePath: string): Promise<number> {
11021102
// Fall through to format-level probe.
11031103
}
11041104
try {
1105-
const out = await runFfprobe(filePath, [
1106-
"-show_entries",
1107-
"format=duration",
1108-
"-of",
1109-
"csv=p=0",
1110-
]);
1105+
const out = await runFfprobe(filePath, ["-show_entries", "format=duration", "-of", "csv=p=0"]);
11111106
const d = parseFloat(out.trim());
11121107
return Number.isFinite(d) && d > 0 ? d : 0;
11131108
} catch {

0 commit comments

Comments
 (0)