Skip to content

refactor: streamline version handling in HostData#45

Merged
gibiw merged 1 commit intomasterfrom
chore/version
Dec 17, 2025
Merged

refactor: streamline version handling in HostData#45
gibiw merged 1 commit intomasterfrom
chore/version

Conversation

@gibiw
Copy link
Contributor

@gibiw gibiw commented Dec 17, 2025

  • Simplified version extraction by using strings.TrimPrefix for various version fields in the HostData structure.
  • Removed redundant checks for "v" prefix in version strings, ensuring cleaner and more efficient code.
  • Enhanced the buildXClientHeader function to consistently handle version formatting.

These changes improve code readability and maintainability while ensuring consistent version handling across the SDK.

- Simplified version extraction by using strings.TrimPrefix for various version fields in the HostData structure.
- Removed redundant checks for "v" prefix in version strings, ensuring cleaner and more efficient code.
- Enhanced the buildXClientHeader function to consistently handle version formatting.

These changes improve code readability and maintainability while ensuring consistent version handling across the SDK.
@gibiw gibiw merged commit 78dc305 into master Dec 17, 2025
30 checks passed
@gibiw gibiw deleted the chore/version branch December 17, 2025 18:13
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.

1 participant