Skip to content

Conversation

@thiagomourahp
Copy link
Collaborator

fix encoding to avoid duplicated references in file

@coveralls
Copy link

Pull Request Test Coverage Report for Build 4137226783

  • 8 of 8 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 91.86%

Totals Coverage Status
Change from base Build 2097683184: 0.3%
Covered Lines: 3769
Relevant Lines: 4103

💛 - Coveralls

@coveralls
Copy link

Pull Request Test Coverage Report for Build 4137226783

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at ?%

Totals Coverage Status
Change from base Build 2097683184: 0%
Covered Lines:
Relevant Lines: 0

💛 - Coveralls

// Duplicated relationships will be removed before encoding.
func (enc *xmlEncoder) AddRelationship(r spec.Relationship) {
enc.relationships = append(enc.relationships, Relationship(r))
hasRelationship := false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to comment above, duplicate relationships should be removed. Logic below seems to prevent duplicate relationships from being added. Why do we need this? Is the duplicate removal not working?

@thiagomourahp thiagomourahp merged commit 917e399 into HPInc:master Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants