File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import {
13
13
LogEventCallback ,
14
14
ProgressEventCallback ,
15
15
FileData ,
16
- WorkerFSMountData ,
17
16
FFFSType ,
18
17
FFFSMountOptions ,
19
18
FFFSPath ,
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ export type CallbackData =
153
153
| LogEvent
154
154
| ProgressEvent
155
155
| IsFirst
156
- | OK
156
+ | OK // eslint-disable-line
157
157
| Error
158
158
| FSNode [ ]
159
159
| undefined ;
@@ -171,4 +171,4 @@ export interface FFMessageEventCallback {
171
171
type : string ;
172
172
data : CallbackData ;
173
173
} ;
174
- }
174
+ }
Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ const deleteDir = ({ path }: FFMessageDeleteDirData): OK => {
140
140
} ;
141
141
142
142
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 ] ;
145
145
if ( ! fs ) return false ;
146
146
ffmpeg . FS . mount ( fs , options , mountPoint ) ;
147
147
return true ;
@@ -158,7 +158,7 @@ self.onmessage = async ({
158
158
const trans = [ ] ;
159
159
let data : CallbackData ;
160
160
try {
161
- if ( type !== FFMessageType . LOAD && ! ffmpeg ) throw ERROR_NOT_LOADED ;
161
+ if ( type !== FFMessageType . LOAD && ! ffmpeg ) throw ERROR_NOT_LOADED ; // eslint-disable-line
162
162
163
163
switch ( type ) {
164
164
case FFMessageType . LOAD :
You can’t perform that action at this time.
0 commit comments