chore: cleanup

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-06-22 12:44:43 +02:00
parent e65ad09894
commit 2e0637835b
2 changed files with 1 additions and 4 deletions
@@ -204,7 +204,7 @@ export class GerritUrlReader implements UrlReader {
});
const tarArchive = Readable.from(data);
return await this.deps.treeResponseFactory.fromTarArchive({
stream: Readable.from(tarArchive),
stream: tarArchive,
subpath: filePath === '/' ? undefined : filePath,
etag: branchInfo.revision,
filter: options?.filter,
@@ -151,9 +151,6 @@ export class TarArchiveResponse implements ReadTreeResponse {
const strip = this.subPath ? this.subPath.split('/').length : 1;
let filterError: Error | undefined = undefined;
this.stream.on('error', console.error);
this.stream.on('close', console.error);
console.log('we are here!');
await pipeline(
this.stream,
tar.extract({