Skip to content

Commit

Permalink
switch a use of pointer to non-pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Aug 3, 2023
1 parent 64da880 commit 4f48cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/utils/yarn.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func buildYarnV1DependencyMap(packageInfo *PackageInfo, responseStr string) (dep

// Adding child dependencies for each dependency
for _, curDependency := range depTree.Data.DepTree {
dependency := *(dependenciesMap[curDependency.Name])
dependency := dependenciesMap[curDependency.Name]

for _, subDep := range curDependency.Dependencies {
subDepName, _, err := splitNameAndVersion(subDep.DependencyName)
Expand All @@ -193,7 +193,7 @@ func buildYarnV1DependencyMap(packageInfo *PackageInfo, responseStr string) (dep
}
dependency.Details.Dependencies = append(dependency.Details.Dependencies, YarnDependencyPointer{subDep.DependencyName, packNameToFullName[subDepName]})
}
dependenciesMap[curDependency.Name] = &dependency
dependenciesMap[curDependency.Name] = dependency
}

rootProject := buildYarn1Root(packageInfo, &packNameToFullName)
Expand Down

0 comments on commit 4f48cb7

Please sign in to comment.