summaryrefslogtreecommitdiff
path: root/cli/args/package_json.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-07-26 17:23:07 -0400
committerGitHub <noreply@github.com>2023-07-26 17:23:07 -0400
commitcf16df00d9ba87de643abc6d80c860a2733917cc (patch)
treed8e17df213941675c8eecba89931b8417cd0367f /cli/args/package_json.rs
parent53e077133f9c95e4ed23d838129158b6e4b88d6f (diff)
fix(check): should bust check cache when json module or npm resolution changes (#19941)
A small part of #19928.
Diffstat (limited to 'cli/args/package_json.rs')
-rw-r--r--cli/args/package_json.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/args/package_json.rs b/cli/args/package_json.rs
index a8c6eaad4..76a09eadd 100644
--- a/cli/args/package_json.rs
+++ b/cli/args/package_json.rs
@@ -85,7 +85,7 @@ pub fn get_local_package_json_version_reqs(
match result {
Ok(version_req) => Ok(NpmPackageReq {
name: name.to_string(),
- version_req: Some(version_req),
+ version_req,
}),
Err(err) => Err(PackageJsonDepValueParseError::Specifier(err)),
}