mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-05 09:14:02 -04:00
Format with Prettier 2.3
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
6658f0d5b4
commit
eaf1852fe5
9 changed files with 94 additions and 88 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue