prefetch-npm-deps: fix error typo and unnecessary name qualifier

(cherry picked from commit 785ed11d0a)
This commit is contained in:
Lily Foster
2023-08-09 19:13:13 -04:00
parent bd1cde45c7
commit 1a88aabdc1
2 changed files with 3 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ fn fixup_lockfile(
// Recursive helper to fixup v1 lockfile deps
fn fixup_v1_deps(
dependencies: &mut serde_json::Map<String, Value>,
dependencies: &mut Map<String, Value>,
cache: &Option<HashMap<String, String>>,
fixed: &mut bool,
) {

View File

@@ -139,9 +139,9 @@ impl Package {
None => Specifics::Registry {
integrity: pkg
.integrity
.expect("non-git dependencies should have assosciated integrity")
.expect("non-git dependencies should have associated integrity")
.into_best()
.expect("non-git dependencies should have non-empty assosciated integrity"),
.expect("non-git dependencies should have non-empty associated integrity"),
},
};