File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/dicom/typescript/src Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,17 @@ async function readImageDicomFileSeries(
27
27
workerPool = new WorkerPool ( numberOfWorkers , readImageDicomFileSeriesWorkerFunction )
28
28
}
29
29
30
- const inputs : Array < BinaryFile > = [
31
- ]
32
30
if ( options . inputImages . length < 1 ) {
33
31
throw new Error ( '"input-images" option must have a length > 1' )
34
32
}
35
33
36
- await Promise . all ( options . inputImages . map ( async ( value ) => {
34
+ const inputs : Array < BinaryFile > = await Promise . all ( options . inputImages . map ( async ( value ) => {
37
35
let valueFile = value
38
36
if ( value instanceof File ) {
39
37
const valueBuffer = await value . arrayBuffer ( )
40
38
valueFile = { path : value . name , data : new Uint8Array ( valueBuffer ) }
41
39
}
42
- inputs . push ( valueFile as BinaryFile )
40
+ return valueFile as BinaryFile
43
41
} ) )
44
42
45
43
if ( options . singleSortedSeries ) {
You can’t perform that action at this time.
0 commit comments