Skip to content

Commit ada7d82

Browse files
Trottdanielleadams
authored andcommitted
lib: require JSDoc in internal validators code
Closes: #44893 PR-URL: #44896 Fixes: #44893 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent b6b9c42 commit ada7d82

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/internal/validators.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint jsdoc/require-jsdoc: "error" */
2+
13
'use strict';
24

35
const {
@@ -217,6 +219,12 @@ function validateBoolean(value, name) {
217219
throw new ERR_INVALID_ARG_TYPE(name, 'boolean', value);
218220
}
219221

222+
/**
223+
* @param {?object} options
224+
* @param {string} key
225+
* @param {boolean} defaultValue
226+
* @returns {boolean}
227+
*/
220228
function getOwnPropertyValueOrDefault(options, key, defaultValue) {
221229
return options == null || !ObjectPrototypeHasOwnProperty(options, key) ?
222230
defaultValue :

0 commit comments

Comments
 (0)