diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-28 23:03:28 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-28 23:03:28 +0000 |
commit | 7cf710c66f5645193a765ededfed77eaec9a19a9 (patch) | |
tree | 37d90acc05413f8a0cca0b8c20b4bb84b0dbb41e /editors/code/src/installation/download_file.ts | |
parent | cc477edc6692608ca809ba39db274c5e837a3498 (diff) | |
parent | 6dc598fa6331de6124a255527e37804d82372fdc (diff) |
Merge #3372
3372: vscode: migrate to more type-safe assert impl r=matklad a=Veetaha
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions
Co-authored-by: Veetaha <[email protected]>
Diffstat (limited to 'editors/code/src/installation/download_file.ts')
-rw-r--r-- | editors/code/src/installation/download_file.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/code/src/installation/download_file.ts b/editors/code/src/installation/download_file.ts index 319cb995c..ee8949d61 100644 --- a/editors/code/src/installation/download_file.ts +++ b/editors/code/src/installation/download_file.ts | |||
@@ -2,8 +2,7 @@ import fetch from "node-fetch"; | |||
2 | import * as fs from "fs"; | 2 | import * as fs from "fs"; |
3 | import * as stream from "stream"; | 3 | import * as stream from "stream"; |
4 | import * as util from "util"; | 4 | import * as util from "util"; |
5 | import { strict as assert } from "assert"; | 5 | import { log, assert } from "../util"; |
6 | import { log } from "../util"; | ||
7 | 6 | ||
8 | const pipeline = util.promisify(stream.pipeline); | 7 | const pipeline = util.promisify(stream.pipeline); |
9 | 8 | ||