Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nodejs): add v9 pnpm lock file support #6617

Merged
merged 15 commits into from
May 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: len(dependsOn) > 0
  • Loading branch information
DmitriyLewen committed May 20, 2024
commit 535b1e22b44c990578f3f04ea88b235abf0b28be
2 changes: 1 addition & 1 deletion pkg/dependency/parser/nodejs/pnpm/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (p *Parser) parseV9(lockFile LockFile) ([]ftypes.Package, []ftypes.Dependen
dependsOn = append(dependsOn, id)
}
}
if dependsOn != nil {
if len(dependsOn) > 0 {
resolvedSnapshots[packageID(name, version)] = dependsOn
}

Expand Down