Unverified Commit 785ed11d authored by Lily Foster's avatar Lily Foster
Browse files

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

parent 5a8e9243
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
) {
+2 −2
Original line number Diff line number Diff line
@@ -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"),
            },
        };