Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dlarocque committed Oct 15, 2024
1 parent 64223d1 commit 720a9e5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/emulator-testing/emulators/emulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ export abstract class Emulator {
const reader = resp.body.getReader();
reader.read().then(function readChunk({ done, value }): any {
if (done) {
console.log('Emulator download is done.')
console.log('Emulator download is done.');
writer.close(err => {
if (err) {
downloadFailed(`Failed to close the downloaded emulator file: ${err}`);
downloadFailed(
`Failed to close the downloaded emulator file: ${err}`
);
}

console.log('Closed downloaded emulator file.')
console.log('Closed downloaded emulator file.');
downloadComplete();
})
});
} else {
writer.write(value);
return reader.read().then(readChunk);
Expand Down

0 comments on commit 720a9e5

Please sign in to comment.