Skip to content

Commit

Permalink
Update release mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
blaubaer committed Dec 20, 2023
1 parent 0758aac commit 91ce4c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const testEnvironment: Environment = {
};

const testContext: ExecutionContext = {
waitUntil(_promise) {
waitUntil() {
throw `Not implemented!`;
},
passThroughOnException() {
Expand Down
6 changes: 3 additions & 3 deletions src/releases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ export class Releases {
}

async _responseBodyToString(body: ReadableStream<any>) {
let reader = body.getReader();
let utf8Decoder = new TextDecoder();
const reader = body.getReader();
const utf8Decoder = new TextDecoder();
let nextChunk;

let resultStr = '';

while (!(nextChunk = await reader.read()).done) {
let partialData = nextChunk.value;
const partialData = nextChunk.value;
resultStr += utf8Decoder.decode(partialData);
}

Expand Down

0 comments on commit 91ce4c4

Please sign in to comment.