Skip to content

Commit

Permalink
fix: linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
n4l5u0r committed Nov 29, 2024
1 parent 38e3349 commit 95ebd7c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/emulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export default class EmuContainer {
private readonly elfLocalPath: string;
private readonly name: string;
private readonly image: string;
private readonly ghcrImage: string;
private readonly libElfs: Record<string, string>;
private currentContainer?: Container;

Expand All @@ -40,7 +39,6 @@ export default class EmuContainer {
this.libElfs = libElfs;
this.name = name;
this.logging = false;
this.ghcrImage = `ghcr.io/${image}`;
}

static killContainerByName(name: string): void {
Expand Down Expand Up @@ -89,7 +87,8 @@ export default class EmuContainer {
throw err;
}

docker.modem.followProgress(stream, onFinished, onProgress);
docker.modem.followProgress(
stream as NodeJS.ReadableStream, onFinished, onProgress);
});
});
}
Expand Down Expand Up @@ -150,7 +149,7 @@ export default class EmuContainer {

this.log(`[ZEMU] Creating Container ${this.image} - ${this.name} `);
this.currentContainer = await docker.createContainer({
Image: this.ghcrImage,
Image: this.image,
name: this.name,
Tty: true,
AttachStdout: true,
Expand Down

0 comments on commit 95ebd7c

Please sign in to comment.