mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Use resolve(void 0) instead of resolve(null) for void promises
Fixes a common type error
This commit is contained in:
@@ -129,9 +129,9 @@ suite('ConfigurationEditingService', () => {
|
||||
function clearWorkspace(): Promise<void> {
|
||||
return new Promise<void>((c, e) => {
|
||||
if (parentDir) {
|
||||
extfs.del(parentDir, os.tmpdir(), () => c(null), () => c(null));
|
||||
extfs.del(parentDir, os.tmpdir(), () => c(void 0), () => c(void 0));
|
||||
} else {
|
||||
c(null);
|
||||
c(void 0);
|
||||
}
|
||||
}).then(() => parentDir = null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user