Skip to content

Commit

Permalink
chore(resolve): drop unnecessary function alias
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Sep 29, 2024
1 parent 3d903a4 commit afad23e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ function fullResolve(
return { found: true, path: cachedPath }
}

function cache(resolvedPath: string | null) {
fileExistsCache.set(cacheKey, resolvedPath)
}

function withResolver(resolver: Resolver, config: unknown) {
if (resolver.interfaceVersion === 2) {
return resolver.resolve(modulePath, sourceFile, config)
Expand Down Expand Up @@ -195,7 +191,7 @@ function fullResolve(
}

// else, counts
cache(resolved.path as string | null)
fileExistsCache.set(cacheKey, resolved.path as string | null)
return resolved
}

Expand Down

0 comments on commit afad23e

Please sign in to comment.