Skip to content

Commit 22c8f3d

Browse files
committed
chore: Remove unused argument "baseDir"
1 parent df58163 commit 22c8f3d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/util/import-target.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,10 @@ module.exports = class ImportTarget {
259259
}
260260

261261
/**
262-
* @param {string} _baseDir
263262
* @param {unknown} error
264263
* @returns {void}
265264
*/
266-
handleResolutionError(_baseDir, error) {
265+
handleResolutionError(error) {
267266
if (error instanceof Error === false) {
268267
throw error
269268
}
@@ -327,7 +326,7 @@ module.exports = class ImportTarget {
327326
const resolved = requireResolve(baseDir, this.name)
328327
if (typeof resolved === "string") return resolved
329328
} catch (error) {
330-
this.handleResolutionError(baseDir, error)
329+
this.handleResolutionError(error)
331330
}
332331
}
333332

0 commit comments

Comments
 (0)