summary refs log tree commit diff
path: root/src/cdn/util
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:29:30 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:41:21 +1000
commitdbaf39237ae3a41b6b1ac6a6cd3486129599b815 (patch)
tree350cca4889d0804445eddbd8467d274b27307776 /src/cdn/util
parentRemove the cdn storage location log (diff)
downloadserver-dbaf39237ae3a41b6b1ac6a6cd3486129599b815.tar.xz
Prettier
Diffstat (limited to 'src/cdn/util')
-rw-r--r--src/cdn/util/S3Storage.ts2
-rw-r--r--src/cdn/util/Storage.ts6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cdn/util/S3Storage.ts b/src/cdn/util/S3Storage.ts
index c4066817..33c11265 100644
--- a/src/cdn/util/S3Storage.ts
+++ b/src/cdn/util/S3Storage.ts
@@ -14,7 +14,7 @@ export class S3Storage implements Storage {
 	public constructor(
 		private client: S3,
 		private bucket: string,
-		private basePath?: string
+		private basePath?: string,
 	) {}
 
 	/**
diff --git a/src/cdn/util/Storage.ts b/src/cdn/util/Storage.ts
index d040f50b..d66cb2dc 100644
--- a/src/cdn/util/Storage.ts
+++ b/src/cdn/util/Storage.ts
@@ -33,14 +33,14 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) {
 
 	if (!region) {
 		console.error(
-			`[CDN] You must provide a region when using the S3 storage provider.`
+			`[CDN] You must provide a region when using the S3 storage provider.`,
 		);
 		process.exit(1);
 	}
 
 	if (!bucket) {
 		console.error(
-			`[CDN] You must provide a bucket when using the S3 storage provider.`
+			`[CDN] You must provide a bucket when using the S3 storage provider.`,
 		);
 		process.exit(1);
 	}
@@ -50,7 +50,7 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) {
 
 	if (!location) {
 		console.warn(
-			`[CDN] STORAGE_LOCATION unconfigured for S3 provider, defaulting to the bucket root...`
+			`[CDN] STORAGE_LOCATION unconfigured for S3 provider, defaulting to the bucket root...`,
 		);
 		location = undefined;
 	}