Skip to content

Commit e0a5cf1

Browse files
committed
debt - remove one Promise.join overload, microsoft#53526
1 parent 3c5beb9 commit e0a5cf1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/vs/base/common/winjs.base.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export declare class Promise<T = any, TProgress = any> {
3939

4040
public static join<T1, T2>(promises: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;
4141
public static join<T>(promises: (T | PromiseLike<T>)[]): Promise<T[]>;
42-
public static join<T>(promises: { [n: string]: T | PromiseLike<T> }): Promise<{ [n: string]: T }>;
4342

4443
public static any<T>(promises: (T | PromiseLike<T>)[]): Promise<{ key: string; value: Promise<T>; }>;
4544

src/vs/workbench/services/configuration/node/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export class FileServiceBasedFolderConfiguration extends AbstractFolderConfigura
284284
}
285285
}).then(null, err => [] /* never fail this call */);
286286

287-
return bulkContentFetchromise.then(() => TPromise.join(workspaceFilePathToConfiguration).then(result => collections.values(result)));
287+
return bulkContentFetchromise.then(() => TPromise.join(collections.values(workspaceFilePathToConfiguration)));
288288
}
289289

290290
private handleWorkspaceFileEvents(event: FileChangesEvent): void {
@@ -489,4 +489,4 @@ export class FolderConfiguration extends Disposable implements IFolderConfigurat
489489
}
490490
return TPromise.as(null);
491491
}
492-
}
492+
}

0 commit comments

Comments
 (0)