From 6b7afc831f55964fb7d87e16da9747e8aa838604 Mon Sep 17 00:00:00 2001 From: Adam Rice Date: Fri, 6 Dec 2019 21:05:33 +0900 Subject: [PATCH] Apply @jeremyroman nits to explainer The explainer contains the same example that @jeremyroman fixed in the specification. Apply the same fixes there. --- explainer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/explainer.md b/explainer.md index f67398d..eabf785 100644 --- a/explainer.md +++ b/explainer.md @@ -127,10 +127,10 @@ This treats the input as a gzip file regardless of the mime-type. The output Blob has an empty mime-type. ```javascript -async function DecompressBlob(blob) { +function decompressBlob(blob) { const ds = new DecompressionStream('gzip'); const decompressedStream = blob.stream().pipeThrough(ds); - return await new Response(decompressedStream).blob(); + return new Response(decompressedStream).blob(); } ```