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

This commit is contained in:
Lily Foster 2023-08-09 19:13:13 -04:00
parent 5a8e924381
commit 785ed11d0a
No known key found for this signature in database
GPG key ID: 49340081E484C893
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"),
},
};