Skip to content

Commit

Permalink
chore: Remove unused argument "baseDir"
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood committed Oct 22, 2024
1 parent df58163 commit 22c8f3d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/util/import-target.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,10 @@ module.exports = class ImportTarget {
}

/**
* @param {string} _baseDir
* @param {unknown} error
* @returns {void}
*/
handleResolutionError(_baseDir, error) {
handleResolutionError(error) {
if (error instanceof Error === false) {
throw error
}
Expand Down Expand Up @@ -327,7 +326,7 @@ module.exports = class ImportTarget {
const resolved = requireResolve(baseDir, this.name)
if (typeof resolved === "string") return resolved
} catch (error) {
this.handleResolutionError(baseDir, error)
this.handleResolutionError(error)
}
}

Expand Down

0 comments on commit 22c8f3d

Please sign in to comment.