@@ -104,7 +104,7 @@ const processMultipleInputsWithInk = (
104104 }
105105
106106 // ヘルプオプションが含まれている場合は何もしない
107- if ( inputPaths . some ( path => path . startsWith ( '--' ) ) ) {
107+ if ( inputPaths . some ( ( path ) => path . startsWith ( '--' ) ) ) {
108108 return ;
109109 }
110110
@@ -139,7 +139,7 @@ const processMultipleInputsWithInk = (
139139 }
140140
141141 // ファイルリストを初期化
142- const initialFiles = allM4aFiles . map ( filePath => ( {
142+ const initialFiles = allM4aFiles . map ( ( filePath ) => ( {
143143 path : path . relative ( process . cwd ( ) , filePath ) ,
144144 status : 'pending' as const ,
145145 } ) ) ;
@@ -177,23 +177,27 @@ const processMultipleInputsWithInk = (
177177
178178 return Effect . gen ( function * ( ) {
179179 const displayPath = path . relative ( process . cwd ( ) , inputFilePath ) ;
180-
180+
181181 // ファイル処理開始を通知
182182 if ( global . updateFileStatus ) {
183183 global . updateFileStatus ( displayPath , 'processing' , undefined ) ;
184184 }
185185
186186 try {
187187 yield * convertM4aToMp3 ( conversionOptions ) ;
188-
188+
189189 // ファイル処理完了を通知
190190 if ( global . updateFileStatus ) {
191191 global . updateFileStatus ( displayPath , 'completed' , undefined ) ;
192192 }
193193 } catch ( error ) {
194194 // ファイル処理エラーを通知
195195 if ( global . updateFileStatus ) {
196- global . updateFileStatus ( displayPath , 'error' , error instanceof Error ? error . message : 'Unknown error' ) ;
196+ global . updateFileStatus (
197+ displayPath ,
198+ 'error' ,
199+ error instanceof Error ? error . message : 'Unknown error'
200+ ) ;
197201 }
198202 throw error ;
199203 }
@@ -202,10 +206,10 @@ const processMultipleInputsWithInk = (
202206
203207 // 全ての変換を並列実行
204208 const concurrency = validatedArgs . jobs || 10 ;
205-
209+
206210 try {
207211 yield * Effect . all ( conversionTasks , { concurrency } ) ;
208-
212+
209213 // 全ての変換が完了したら少し待ってから終了
210214 yield * Effect . sleep ( '2 seconds' ) ;
211215 } catch ( error ) {
0 commit comments