Format with Prettier 2.3

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-05-15 21:13:44 +02:00
parent 6658f0d5b4
commit eaf1852fe5
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
9 changed files with 94 additions and 88 deletions

View file

@ -42,9 +42,8 @@ export class AzureBackend implements MediaBackend {
buffer: Buffer,
fileName: string,
): Promise<[string, BackendData]> {
const blockBlobClient: BlockBlobClient = this.client.getBlockBlobClient(
fileName,
);
const blockBlobClient: BlockBlobClient =
this.client.getBlockBlobClient(fileName);
try {
await blockBlobClient.upload(buffer, buffer.length);
const url = this.getUrl(fileName);
@ -61,9 +60,8 @@ export class AzureBackend implements MediaBackend {
}
async deleteFile(fileName: string, _: BackendData): Promise<void> {
const blockBlobClient: BlockBlobClient = this.client.getBlockBlobClient(
fileName,
);
const blockBlobClient: BlockBlobClient =
this.client.getBlockBlobClient(fileName);
try {
await blockBlobClient.delete();
const url = this.getUrl(fileName);