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

Fix template parameter duplication if declname is not in xml. #95

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

r-braun
Copy link
Contributor

@r-braun r-braun commented Apr 2, 2024

Fixes the issue where some template parameter declarations are repeated.

fixes #81

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @r-braun - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Docstrings: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

Comment on lines 193 to 194
if declname is not None:
declaration += ' ' + self.parser.paras_as_str(declname, plain=plain)
Copy link

Choose a reason for hiding this comment

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

suggestion (code_refinement): Consider trimming whitespace for cases where declname is None.

This ensures that the final declaration string does not have trailing whitespace when declname is not present.

@JakubAndrysek JakubAndrysek merged commit 5ffa7a9 into JakubAndrysek:main Apr 2, 2024
7 checks passed
@JakubAndrysek
Copy link
Owner

image

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.

Template parameter declarations repeated
2 participants