Skip to content

Commit 1ec421e

Browse files
committed
fixup! lib: fix JSDoc issues
1 parent 30adf34 commit 1ec421e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/modules/esm/assert.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function validateAssertions(url, format,
6868
if (!ObjectPrototypeHasOwnProperty(importAssertions, 'type')) {
6969
return true;
7070
}
71-
return handleInvalidType(url, importAssertions.type);
71+
return createHandleInvalidTypeError(url, importAssertions.type);
7272

7373
case importAssertions.type:
7474
// The asserted type is the valid type for this format.
@@ -81,7 +81,7 @@ function validateAssertions(url, format,
8181
// `type` wasn't specified at all.
8282
throw new ERR_IMPORT_ASSERTION_TYPE_MISSING(url, validType);
8383
}
84-
return handleInvalidType(url, importAssertions.type);
84+
return createHandleInvalidTypeError(url, importAssertions.type);
8585
}
8686
}
8787

@@ -90,7 +90,7 @@ function validateAssertions(url, format,
9090
* @param {string} url The resolved URL for the module to be imported
9191
* @param {string} type The value of the import assertion `type` property
9292
*/
93-
function handleInvalidType(url, type) {
93+
function createHandleInvalidTypeError(url, type) {
9494
// `type` might have not been a string.
9595
validateString(type, 'type');
9696

0 commit comments

Comments
 (0)