diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-09-24 11:11:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 11:11:16 -0400 |
commit | 9705efd419ffa05b0d88e788e0ceb77e38078449 (patch) | |
tree | 92ec01259b29f158e6adb844c49bc05ac827ea82 /cli/module_loader.rs | |
parent | 01da1d0adc0d09d60eb765ac583be8108eb31e36 (diff) |
refactor: Remove op_state parameter (#12202)
Diffstat (limited to 'cli/module_loader.rs')
-rw-r--r-- | cli/module_loader.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/module_loader.rs b/cli/module_loader.rs index faf1492bb..c14c953b2 100644 --- a/cli/module_loader.rs +++ b/cli/module_loader.rs @@ -65,7 +65,6 @@ impl CliModuleLoader { impl ModuleLoader for CliModuleLoader { fn resolve( &self, - _op_state: Rc<RefCell<OpState>>, specifier: &str, referrer: &str, is_main: bool, @@ -77,6 +76,9 @@ impl ModuleLoader for CliModuleLoader { referrer }; + // TODO(ry) I think we can remove this conditional. At the time of writing + // we don't have any tests that fail if it was removed. + // https://github.com/WICG/import-maps/issues/157 if !is_main { if let Some(import_map) = &self.import_map { return import_map @@ -92,7 +94,6 @@ impl ModuleLoader for CliModuleLoader { fn load( &self, - _op_state: Rc<RefCell<OpState>>, module_specifier: &ModuleSpecifier, maybe_referrer: Option<ModuleSpecifier>, _is_dynamic: bool, |