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 {
1313 LogEventCallback ,
1414 ProgressEventCallback ,
1515 FileData ,
16- WorkerFSMountData ,
1716 FFFSType ,
1817 FFFSMountOptions ,
1918 FFFSPath ,
Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ const deleteDir = ({ path }: FFMessageDeleteDirData): OK => {
140140} ;
141141
142142const 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 :
You can’t perform that action at this time.
0 commit comments