Skip to content
New issue

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

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

Already on GitHub? # to your account

fix encoding to avoid duplicated references #32

Merged
merged 1 commit into from
Feb 10, 2023
Merged

fix encoding to avoid duplicated references #32

merged 1 commit into from
Feb 10, 2023

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

@@ -36,7 +36,16 @@ func newXMLEncoder(w io.Writer, floatPresicion int) *xmlEncoder {
// AddRelationship adds a relationship to the encoded model.
// 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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants