summaryrefslogtreecommitdiff
path: root/cli/npm/cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/npm/cache.rs')
-rw-r--r--cli/npm/cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/npm/cache.rs b/cli/npm/cache.rs
index 6a6c6156c..0d07d27b2 100644
--- a/cli/npm/cache.rs
+++ b/cli/npm/cache.rs
@@ -216,7 +216,7 @@ impl ReadonlyNpmCache {
let encoded_name = mixed_case_package_name_encode(name);
// Using the encoded directory may have a collision with an actual package name
// so prefix it with an underscore since npm packages can't start with that
- dir.join(format!("_{}", encoded_name))
+ dir.join(format!("_{encoded_name}"))
} else {
// ensure backslashes are used on windows
for part in name.split('/') {