Skip to content

xenopsd: Avoid calling to_string every time #6206

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

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

freddy77
Copy link
Collaborator

@freddy77 freddy77 commented Jan 2, 2025

Minor style.

uuid is always converted to string, avoid doing it every time it's used.

Minor style.
"uuid" is always converted to string, avoid doing it every time it's used.

Signed-off-by: Frediano Ziglio <[email protected]>
Copy link
Contributor

@contificate contificate left a comment

Choose a reason for hiding this comment

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

At a glance, there appears to be other parts of the file where this could be done.

Preferably, if it's only used this way, we could just avoid the shadowing altogether.

@psafont psafont added this pull request to the merge queue Jan 2, 2025
Merged via the queue into xapi-project:master with commit 34b5b63 Jan 2, 2025
15 checks passed
@freddy77 freddy77 deleted the simplify_string branch January 7, 2025 10:59
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.

3 participants