Skip to content

Commit

Permalink
chore(api/npm/module.js): clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Apr 23, 2024
1 parent 9f5ee9b commit ebfd804
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions api/npm/module.js
Expand Up @@ -50,8 +50,6 @@ export async function resolve (specifier, origin = null, options = null) {

try {
pkg.load()
// will call `pkg.load()` internally
// can throw `ModuleNotFoundError`
const url = pkg.type === type
? pkg.resolve(pathname, { prefix, type })
: pkg.resolve(pathname, { prefix })
Expand Down

0 comments on commit ebfd804

Please sign in to comment.