Skip to content

Commit 840534a

Browse files
committed
Format
1 parent cf6ce4e commit 840534a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/emulator-testing/emulators/emulator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ export abstract class Emulator {
5757
const filepath = path.resolve(tempDir, this.binaryName);
5858
return new Promise<void>((resolve, reject) => {
5959
/**
60-
* Once the download is `done` in `readChunk`, we want to set `this.binaryPath` to the path of the
60+
* Once the download is `done` in `readChunk`, we want to set `this.binaryPath` to the path of the
6161
* downloaded emulator. Unfortunately, we can't access `this` when inside `readChunk`'s scope, since
6262
* it's a named function expression, and does not inherit the `this` object from it's parent.
63-
* To work around this, we wrap the fetch in a promise,
63+
* To work around this, we wrap the fetch in a promise,
6464
* then once it's resolved we can access `this` in a callback arrow function that *does* inherit
6565
* `this` from the parent object, allowing us to set `this.binaryPath`.
6666
* Note that we can't make readChunk an arrow function, since it needs to be named so that we can

0 commit comments

Comments
 (0)