Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Apr 24, 2023
1 parent d78b4c7 commit 0781a3c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,8 @@ export async function download(options: FetchOptions): Promise<string> {
(typeof options === "object" && "cache" in options
? options.cache
: undefined) ?? "use";
const [url, directory] = await Promise.all([
createDownloadURL(options),
ensureCacheLocation(location),
]);
const url = createDownloadURL(options);
const directory = await ensureCacheLocation(location);
const cacheBasePath = join(directory, await urlToFilename(url));
const cacheFilePath = `${cacheBasePath}${extname(url.pathname)}`;
const cacheMetaPath = `${cacheBasePath}.metadata.json`;
Expand Down

0 comments on commit 0781a3c

Please sign in to comment.