Skip to content

Commit

Permalink
style(test-tooling): fixed any type linter warns in quorum-test-ledger
Browse files Browse the repository at this point in the history
Signed-off-by: Alec Phong <alecphong@gmail.com>
Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
alec-p-hong authored and petermetz committed Nov 29, 2022
1 parent f504685 commit 1b352c2
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,16 @@ export class QuorumTestLedger implements ITestLedger {
}

public async getFileContents(filePath: string): Promise<string> {
const response: any = await this.getContainer().getArchive({
path: filePath,
});
const response: NodeJS.ReadableStream = await this.getContainer().getArchive(
{
path: filePath,
},
);
const extract: tar.Extract = tar.extract({ autoDestroy: true });

return new Promise((resolve, reject) => {
let fileContents = "";
extract.on("entry", async (header: any, stream, next) => {
extract.on("entry", async (header: unknown, stream, next) => {
stream.on("error", (err: Error) => {
reject(err);
});
Expand Down

0 comments on commit 1b352c2

Please sign in to comment.