Skip to content

Commit 147596b

Browse files
committed
Fix lint errors
1 parent 7066134 commit 147596b

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

packages/ffmpeg/src/classes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
LogEventCallback,
1414
ProgressEventCallback,
1515
FileData,
16-
WorkerFSMountData,
1716
FFFSType,
1817
FFFSMountOptions,
1918
FFFSPath,

packages/ffmpeg/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export type CallbackData =
153153
| LogEvent
154154
| ProgressEvent
155155
| IsFirst
156-
| OK
156+
| OK // eslint-disable-line
157157
| Error
158158
| FSNode[]
159159
| undefined;
@@ -171,4 +171,4 @@ export interface FFMessageEventCallback {
171171
type: string;
172172
data: CallbackData;
173173
};
174-
}
174+
}

packages/ffmpeg/src/worker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ const deleteDir = ({ path }: FFMessageDeleteDirData): OK => {
140140
};
141141

142142
const mount = ({ fsType, options, mountPoint }: FFMessageMountData): OK => {
143-
let str = fsType as keyof typeof ffmpeg.FS.filesystems;
144-
let fs = ffmpeg.FS.filesystems[str];
143+
const str = fsType as keyof typeof ffmpeg.FS.filesystems;
144+
const fs = ffmpeg.FS.filesystems[str];
145145
if (!fs) return false;
146146
ffmpeg.FS.mount(fs, options, mountPoint);
147147
return true;
@@ -158,7 +158,7 @@ self.onmessage = async ({
158158
const trans = [];
159159
let data: CallbackData;
160160
try {
161-
if (type !== FFMessageType.LOAD && !ffmpeg) throw ERROR_NOT_LOADED;
161+
if (type !== FFMessageType.LOAD && !ffmpeg) throw ERROR_NOT_LOADED; // eslint-disable-line
162162

163163
switch (type) {
164164
case FFMessageType.LOAD:

0 commit comments

Comments
 (0)