cleanup conditionals on s3 client creation

This commit is contained in:
Jonah Back
2021-02-11 12:49:48 -08:00
parent 58fdcb6a30
commit 5cd564dc0d
@@ -95,11 +95,7 @@ export class AwsS3Publish implements PublisherBase {
const region = config.getOptionalString('techdocs.publisher.awsS3.region');
const storageClient = new aws.S3({
...(credentials &&
accessKeyId &&
secretAccessKey && {
credentials: awsCredentials,
}),
credentials,
...(region && {
region,
}),