Skip to content

Commit

Permalink
remove unused toDispose
Browse files Browse the repository at this point in the history
Signed-off-by: Uni Sayo <unibtc@gmail.com>
  • Loading branch information
uniibu committed Apr 16, 2019
1 parent 29239a6 commit e04cce6
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { FileDownloadData } from '../../common/download/file-download-data';
import { Deferred } from '@theia/core/lib/common/promise-util';
import { MessageService } from '@theia/core/lib/common/message-service';
import { addClipboardListener } from '@theia/core/lib/browser/widgets';
import { DisposableCollection } from '@theia/core/lib/common';

@injectable()
export class FileDownloadService {
Expand All @@ -47,8 +46,6 @@ export class FileDownloadService {
@inject(MessageService)
protected readonly messageService: MessageService;

protected readonly toDispose = new DisposableCollection();

protected uploadForm: {
target: HTMLInputElement
file: HTMLInputElement
Expand Down Expand Up @@ -203,7 +200,7 @@ export class FileDownloadService {
}
}

protected forceDownload(id: string, title: string): void {
protected async forceDownload(id: string, title: string): Promise<void> {
let url: string | undefined;
try {
if (this.anchor === undefined) {
Expand Down

0 comments on commit e04cce6

Please sign in to comment.