prefetch-npm-deps: fix error typo and unnecessary name qualifier
This commit is contained in:
parent
5a8e924381
commit
785ed11d0a
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
) {
|
||||
|
|
|
@ -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"),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue