summaryrefslogtreecommitdiff
path: root/cli/npm/registry.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/npm/registry.rs')
-rw-r--r--cli/npm/registry.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/npm/registry.rs b/cli/npm/registry.rs
index e6af92fe8..066c136ee 100644
--- a/cli/npm/registry.rs
+++ b/cli/npm/registry.rs
@@ -397,7 +397,7 @@ impl RealNpmRegistryApiInner {
) -> Result<(), AnyError> {
let file_cache_path = self.get_package_file_cache_path(name);
let file_text = serde_json::to_string(&package_info)?;
- std::fs::create_dir_all(&file_cache_path.parent().unwrap())?;
+ std::fs::create_dir_all(file_cache_path.parent().unwrap())?;
fs_util::atomic_write_file(&file_cache_path, file_text, CACHE_PERM)?;
Ok(())
}