Remove unused imports and update method params

Removed the unused 'readFileSync' import from ffmpeg-addon-adapter.ts. Updated parameter names in convertToNTSilkTct method of ffmpeg-exec-adapter.ts to use underscores, indicating unused variables.
This commit is contained in:
手瓜一十雪 2026-01-13 17:01:00 +08:00
parent 35566970fd
commit 37ae17b53f
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
import { platform, arch } from 'node:os';
import path from 'node:path';
import { existsSync, readFileSync, openSync, readSync, closeSync } from 'node:fs';
import { existsSync, openSync, readSync, closeSync } from 'node:fs';
import { writeFile } from 'node:fs/promises';
import type { FFmpeg } from './ffmpeg-addon';
import type { IFFmpegAdapter, VideoInfoResult } from './ffmpeg-adapter-interface';

View File

@ -258,7 +258,7 @@ export class FFmpegExecAdapter implements IFFmpegAdapter {
}
}
async convertToNTSilkTct (inputFile: string, outputFile: string): Promise<void> {
async convertToNTSilkTct (_inputFile: string, _outputFile: string): Promise<void> {
throw new Error('convertToNTSilkTct is not implemented in FFmpegExecAdapter');
}
}