Skip to content

Commit

Permalink
remove duplication of code block
Browse files Browse the repository at this point in the history
Signed-off-by: m-brophy <mbrophy@redhat.com>
  • Loading branch information
m-brophy committed Oct 3, 2023
1 parent 3139441 commit d0a9d79
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/ingestor/parser/spdx/parse_spdx.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,7 @@ func (s *spdxParser) GetPredicates(ctx context.Context) *assembler.IngestPredica
if isDependency(rel.Relationship) {
foundId = string(rel.RefA.ElementRefID)
relatedId = string(rel.RefB.ElementRefID)
} else if isDependent(rel.Relationship) {
foundId = string(rel.RefB.ElementRefID)
relatedId = string(rel.RefA.ElementRefID)
} else if isPackageOf(rel.Relationship) {
} else if isDependent(rel.Relationship) || isPackageOf(rel.Relationship){
foundId = string(rel.RefB.ElementRefID)
relatedId = string(rel.RefA.ElementRefID)
} else {
Expand Down

0 comments on commit d0a9d79

Please sign in to comment.