diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-11-11 21:26:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 21:26:14 -0500 |
commit | d81065cff9d2ac64f73ec29edeb6dae1fdf87f04 (patch) | |
tree | 90f5bf51422b0c39eed043c32f67ea1103a78a37 /cli/npm/cache.rs | |
parent | 06bd9e9e1640150f98857a74fea0cc1a3b3386a7 (diff) |
feat(unstable/npm): module graph derived npm specifier resolution order (#16602)
Diffstat (limited to 'cli/npm/cache.rs')
-rw-r--r-- | cli/npm/cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/npm/cache.rs b/cli/npm/cache.rs index 2d983fa06..e5ce3dfdd 100644 --- a/cli/npm/cache.rs +++ b/cli/npm/cache.rs @@ -25,7 +25,7 @@ use super::tarball::verify_and_extract_tarball; /// For some of the tests, we want downloading of packages /// to be deterministic so that the output is always the same pub fn should_sync_download() -> bool { - std::env::var("DENO_UNSTABLE_NPM_SYNC_DOWNLOAD") == Ok("1".to_string()) + std::env::var("DENO_UNSTABLE_NPM_SYNC_DOWNLOAD").is_ok() } const NPM_PACKAGE_SYNC_LOCK_FILENAME: &str = ".deno_sync_lock"; |