make bucketRootPath the last argument to publish constructors

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
This commit is contained in:
Colton Padden
2021-10-21 09:42:52 -04:00
parent d207f6ee9e
commit 109a66a7c7
2 changed files with 6 additions and 6 deletions
@@ -114,9 +114,9 @@ export class AwsS3Publish implements PublisherBase {
return new AwsS3Publish(
storageClient,
bucketName,
bucketRootPath,
legacyPathCasing,
logger,
bucketRootPath,
);
}
@@ -154,15 +154,15 @@ export class AwsS3Publish implements PublisherBase {
constructor(
private readonly storageClient: aws.S3,
private readonly bucketName: string,
private readonly bucketRootPath: string,
private readonly legacyPathCasing: boolean,
private readonly logger: Logger,
private readonly bucketRootPath: string,
) {
this.storageClient = storageClient;
this.bucketName = bucketName;
this.bucketRootPath = bucketRootPath;
this.legacyPathCasing = legacyPathCasing;
this.logger = logger;
this.bucketRootPath = bucketRootPath;
}
/**
@@ -86,24 +86,24 @@ export class GoogleGCSPublish implements PublisherBase {
return new GoogleGCSPublish(
storageClient,
bucketName,
bucketRootPath,
legacyPathCasing,
logger,
bucketRootPath,
);
}
constructor(
private readonly storageClient: Storage,
private readonly bucketName: string,
private readonly bucketRootPath: string,
private readonly legacyPathCasing: boolean,
private readonly logger: Logger,
private readonly bucketRootPath: string,
) {
this.storageClient = storageClient;
this.bucketName = bucketName;
this.bucketRootPath = bucketRootPath;
this.legacyPathCasing = legacyPathCasing;
this.logger = logger;
this.bucketRootPath = bucketRootPath;
}
/**