Use resolve(void 0) instead of resolve(null) for void promises

Fixes a common type error
This commit is contained in:
Matt Bierner
2018-12-13 15:20:46 -08:00
parent 6b89247875
commit 68a4e01246
8 changed files with 11 additions and 11 deletions

View File

@@ -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);
}