Remove unnecessary awaits
This commit is contained in:
parent
6f8f0e8314
commit
04edf4103f
4 changed files with 19 additions and 4 deletions
|
@ -92,8 +92,8 @@ export default abstract class Exporter {
|
|||
this.cancelled = true;
|
||||
}
|
||||
|
||||
protected async downloadPlainText(fileName: string, text: string): Promise<any> {
|
||||
await saveAs(new Blob[text], fileName);
|
||||
protected downloadPlainText(fileName: string, text: string) {
|
||||
saveAs(new Blob[text], fileName);
|
||||
}
|
||||
|
||||
protected setEventMetadata(event: MatrixEvent): MatrixEvent {
|
||||
|
|
|
@ -107,7 +107,7 @@ export default class JSONExporter extends Exporter {
|
|||
await this.downloadZIP();
|
||||
} else {
|
||||
const fileName = `matrix-export-${formatFullDateNoDay(new Date())}.json`;
|
||||
await this.downloadPlainText(fileName, text);
|
||||
this.downloadPlainText(fileName, text);
|
||||
}
|
||||
|
||||
const exportEnd = performance.now();
|
||||
|
|
|
@ -134,7 +134,7 @@ export default class PlainTextExporter extends Exporter {
|
|||
await this.downloadZIP();
|
||||
} else {
|
||||
const fileName = `matrix-export-${formatFullDateNoDay(new Date())}.txt`;
|
||||
await this.downloadPlainText(fileName, text);
|
||||
this.downloadPlainText(fileName, text);
|
||||
}
|
||||
|
||||
const exportEnd = performance.now();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue