Skip to content

Commit 8524ebe

Browse files
authored
fix(typecheck): review check for ArrayBuffer
Apparently there's not a good easy way to check for something being an ArrayBuffer (isView returns false). Since it's an error condition anyway let it error out somewhere else.
1 parent d2e2371 commit 8524ebe

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

examples/vtkDisplay/index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,6 @@ <h2>Volume:</h2>
452452
//
453453
function part10ToVolumeActor(part10) {
454454
part10 = Array.isArray(part10) ? part10[0] : part10;
455-
if (!ArrayBuffer.isView(part10)) {
456-
console.error("Invalid part10 binary retrieved", part10);
457-
return;
458-
}
459455

460456
dataset = DICOMZero.datasetFromArrayBuffer(part10);
461457

0 commit comments

Comments
 (0)