summaryrefslogtreecommitdiff
path: root/cli/npm/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/npm/mod.rs')
-rw-r--r--cli/npm/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/npm/mod.rs b/cli/npm/mod.rs
index 7bb515e9e..5b49afb3d 100644
--- a/cli/npm/mod.rs
+++ b/cli/npm/mod.rs
@@ -85,13 +85,13 @@ impl GlobalNpmPackageResolver {
reload: bool,
cache_setting: CacheSetting,
unstable: bool,
- ) -> Result<Self, AnyError> {
- Ok(Self::from_cache(
- NpmCache::from_deno_dir(dir, cache_setting.clone())?,
+ ) -> Self {
+ Self::from_cache(
+ NpmCache::from_deno_dir(dir, cache_setting.clone()),
reload,
cache_setting,
unstable,
- ))
+ )
}
fn from_cache(