Skip to content

Commit

Permalink
fix: remove unused any
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Sep 16, 2021
1 parent 4fe1152 commit 88b2b06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/__test__/tar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ o.spec('TarReader', () => {
await fs.copyFile(tarFilePath, coTarFilePath);
await fs.appendFile(coTarFilePath, res.buffer);

const cotar = await Cotar.fromTar(new SourceFile(coTarFilePath) as any);
const cotar = await Cotar.fromTar(new SourceFile(coTarFilePath));
const tarTest = await cotar.index.find('tar.test.js');
o(tarTest).notEquals(null);
o(tarTest?.size).equals(tarTestStat.size);
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/binary/__test__/binary.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ o.spec('CotarBinary', () => {
const source = new SourceFile(tarFilePath);
const sourceIndex = new SourceFile(tarFileIndexPath);

const index = await CotarIndex.create(sourceIndex as any);
const cotar = new Cotar(source as any, index);
const index = await CotarIndex.create(sourceIndex);
const cotar = new Cotar(source, index);

const fileData = await cotar.get('binary.test.js');
o(fileData).notEquals(null);
Expand Down

0 comments on commit 88b2b06

Please sign in to comment.