Skip to content

Commit

Permalink
Fixed errors in conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
ta-Hirose committed Aug 4, 2022
1 parent bb9a1df commit 0832c79
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions libs/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ const createDataFilesDir = async () => {

const installFromURL = async (
url: string,
postProcesses?: string[],
name?: string,
headers?: Record<string, string>,
isUpdate = false,
) => {
Expand All @@ -62,7 +60,7 @@ const installFromURL = async (
console.log("The url have already been installed.");
Deno.exit(0);
}
const result = await new Downloader().download(new URL(url));
const result = await new Downloader().download(new URL(url), headers);
return result.fullPath;
};

Expand Down Expand Up @@ -180,8 +178,6 @@ export class InstallAction {
}
const fullPath = await installFromURL(
url,
options.postProcesses,
options.name,
parsedHeaders,
).catch(
(error) => {
Expand Down Expand Up @@ -212,7 +208,7 @@ export class InstallAction {
url,
options.name || url,
options.postProcesses || [],
options.headers || {},
parsedHeaders,
);
await new DimLockFileAccessor().addContent(lockContent);
console.log(
Expand Down Expand Up @@ -377,8 +373,6 @@ export class UpdateAction {
if (url !== undefined) {
const fullPath = await installFromURL(
url,
options.postProcesses,
options.name,
{},
true,
).catch(
Expand Down

0 comments on commit 0832c79

Please sign in to comment.