Rename unzipToDirectory to unzipToDirectorySequentially

This commit is contained in:
Koen Vlaswinkel
2023-12-19 14:26:03 +01:00
parent 800890443e
commit 9038586aab
2 changed files with 3 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ export async function copyStream(
* @param archivePath
* @param destinationPath
*/
export async function unzipToDirectory(
export async function unzipToDirectorySequentially(
archivePath: string,
destinationPath: string,
): Promise<void> {

View File

@@ -4,7 +4,7 @@ import {
getRequiredAssetName,
codeQlLauncherName,
} from "../../src/common/distribution";
import { unzipToDirectory } from "../../src/common/unzip";
import { unzipToDirectorySequentially } from "../../src/common/unzip";
import fetch from "node-fetch";
import supportedCliVersions from "../../supported_cli_versions.json";
@@ -126,7 +126,7 @@ export async function ensureCli(useCli: boolean) {
console.log(`Unzipping into '${unzipDir}'`);
mkdirpSync(unzipDir);
await unzipToDirectory(downloadedFilePath, unzipDir);
await unzipToDirectorySequentially(downloadedFilePath, unzipDir);
console.log("Done.");
} catch (e) {
console.error("Failed to download CLI.");