Skip to content

Commit

Permalink
refactor: drop unnecessary as Filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-soporan committed Jun 10, 2023
1 parent f3fc013 commit 9e42027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-npm/sources/npmHttpUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function getPackageMetadata(ident: Ident, {configuration, registry,
({registry} = normalizeRegistryOptions(configuration, {ident, registry}));

const registryFolder = getRegistryFolder(configuration, registry);
const identPath = ppath.join(registryFolder, `${structUtils.slugifyIdent(ident)}.json` as Filename);
const identPath = ppath.join(registryFolder, `${structUtils.slugifyIdent(ident)}.json`);

let cachedOnDisk: CachedMetadata | null = null;
try {
Expand Down Expand Up @@ -204,7 +204,7 @@ function getRegistryFolder(configuration: Configuration, registry: string) {
}

function getMetadataFolder(configuration: Configuration) {
return ppath.join(configuration.get(`globalFolder`), `npm-metadata` as Filename);
return ppath.join(configuration.get(`globalFolder`), `npm-metadata`);
}

export async function get(path: string, {configuration, headers, authType, ...rest}: Options) {
Expand Down

0 comments on commit 9e42027

Please sign in to comment.