Skip to content

Commit 404649b

Browse files
committed
style(boot): remove workaround warning comment
1 parent 102a768 commit 404649b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/boot/src/booters/booter-utils.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export function isClass(target: any): target is Constructor<any> {
4444
* and then testing each exported member to see if it's a class or not.
4545
*
4646
* @param files An array of string of absolute file paths
47+
* @param projectRootDir The project root directory
4748
* @returns {Constructor<{}>[]} An array of Class constructors from a file
4849
*/
4950
export function loadClassesFromFiles(
@@ -54,8 +55,6 @@ export function loadClassesFromFiles(
5455
for (const file of files) {
5556
debug('Loading artifact file %j', path.relative(projectRootDir, file));
5657
const moduleObj = require(file);
57-
// WORKAROUND: use `for in` instead of Object.values().
58-
// See https://github.com/nodejs/node/issues/20278
5958
for (const k in moduleObj) {
6059
const exported = moduleObj[k];
6160
if (isClass(exported)) {

0 commit comments

Comments
 (0)