Skip to content

Commit b30a983

Browse files
committed
fix strict null checks
1 parent 420edab commit b30a983

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/base/common/async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class Throttler {
140140

141141
export class Sequencer {
142142

143-
private current = Promise.resolve(null);
143+
private current: Promise<any> = Promise.resolve(null);
144144

145145
queue<T>(promiseTask: ITask<Thenable<T>>): Thenable<T> {
146146
return this.current = this.current.then(() => promiseTask());

src/vs/platform/node/zip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function extractZip(zipfile: ZipFile, targetPath: string, options: IOptions, log
158158
const stream = ninvoke(zipfile, zipfile.openReadStream, entry);
159159
const mode = modeFromEntry(entry);
160160

161-
last = createCancelablePromise(token => throttler.queue(() => stream.then(stream => extractEntry(stream, fileName, mode, targetPath, options, token).then(() => readNextEntry(token)))).then(null, e));
161+
last = createCancelablePromise(token => throttler.queue(() => stream.then(stream => extractEntry(stream, fileName, mode, targetPath, options, token).then(() => readNextEntry(token)))).then(null!, e));
162162
});
163163
});
164164
}

0 commit comments

Comments
 (0)