Skip to content

Commit aba7b7c

Browse files
committed
fix strict null checks
1 parent 8db14ce commit aba7b7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/base/common/async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function createCancelablePromise<T>(callback: (token: CancellationToken)
4545
return this.then(undefined, reject);
4646
}
4747
finally(onfinally?: (() => void) | undefined | null): Promise<T> {
48-
return always(promise, onfinally);
48+
return always(promise, onfinally || (() => { }));
4949
}
5050
};
5151
}

0 commit comments

Comments
 (0)