backend-common: Move definition of etag property inside constructor

This commit is contained in:
Himanshu Mishra
2021-01-20 14:33:06 +01:00
parent a65c4516ec
commit 662d9b9a22
2 changed files with 2 additions and 4 deletions
@@ -36,13 +36,12 @@ const pipeline = promisify(pipelineCb);
*/
export class TarArchiveResponse implements ReadTreeResponse {
private read = false;
public readonly etag;
constructor(
private readonly stream: Readable,
private readonly subPath: string,
private readonly workDir: string,
etag: string,
public readonly etag: string,
private readonly filter?: (path: string) => boolean,
) {
if (subPath) {
@@ -30,13 +30,12 @@ import {
*/
export class ZipArchiveResponse implements ReadTreeResponse {
private read = false;
public readonly etag;
constructor(
private readonly stream: Readable,
private readonly subPath: string,
private readonly workDir: string,
etag: string,
public readonly etag: string,
private readonly filter?: (path: string) => boolean,
) {
if (subPath) {