Skip to content

Commit 722f1ff

Browse files
committed
Remove type === "arraybuffer" support from the fetchData helper function
After the previous patch there's no longer any call-site using that type.
1 parent 8ba83e7 commit 722f1ff

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/display/display_utils.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ async function fetchData(url, type = "text") {
4444
throw new Error(response.statusText);
4545
}
4646
switch (type) {
47-
case "arraybuffer":
48-
return response.arrayBuffer();
4947
case "blob":
5048
return response.blob();
5149
case "bytes":
@@ -71,7 +69,6 @@ async function fetchData(url, type = "text") {
7169
case "bytes":
7270
resolve(new Uint8Array(request.response));
7371
return;
74-
case "arraybuffer":
7572
case "blob":
7673
case "json":
7774
resolve(request.response);

0 commit comments

Comments
 (0)