From 6f703f5e7778d570884768087363b79df46f2a2c Mon Sep 17 00:00:00 2001 From: Jennifer Thakar Date: Wed, 18 Dec 2024 15:27:56 -0800 Subject: [PATCH] Code review --- lib/src/migrator.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/migrator.dart b/lib/src/migrator.dart index 6633db8..235e190 100644 --- a/lib/src/migrator.dart +++ b/lib/src/migrator.dart @@ -70,8 +70,8 @@ abstract class Migrator extends Command> { var importer = FilesystemImporter('.'); var importCache = ImportCache(importers: [ NodeModulesImporter(), - if ((globalResults!['pkg-importer'] as List).contains('node')) - NodePackageImporter('.') + for (var item in globalResults!['pkg-importer'] as List) + if (item == 'node') NodePackageImporter('.') ], loadPaths: globalResults!['load-path']); var entrypoints = [