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

Refactor SVN Value Conversion Logic into a Separate Function #149

Merged
merged 7 commits into from
Jan 8, 2025

Conversation

Akhilesh-max
Copy link
Contributor

Refactors the SVN value conversion logic into a separate function to improve readability and maintainability. The newly created function handles the conversion of various types to for SVN.

Changes made :-

A new function convertToSVNUint64() is created to handle the conversion of various types to uint64 for SVN. Existing functions in svn.go NewTaggedSVN() and NewTaggedMinSVN() have been refactored to use this newly created function convertToSVNUint64().

Akhilesh Kr. Yadav added 4 commits January 6, 2025 19:37
Signed-off-by: Akhilesh Kr. Yadav <[email protected]>
Signed-off-by: Akhilesh Kr. Yadav <[email protected]>
Signed-off-by: Akhilesh Kr. Yadav <[email protected]>
@Akhilesh-max
Copy link
Contributor Author

PTAL @thomas-fossati .

Thanks!

Akhilesh Kr. Yadav added 2 commits January 8, 2025 18:18
Signed-off-by: Akhilesh Kr. Yadav <[email protected]>
Signed-off-by: Akhilesh Kr. Yadav <[email protected]>
Copy link
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @Akhilesh-max !

I've left a small suggestion inline.

comid/svn.go Outdated Show resolved Hide resolved
Signed-off-by: Akhilesh Kr. Yadav <[email protected]>
@Akhilesh-max
Copy link
Contributor Author

Thanks for the review, @thomas-fossati!

Updated as per the suggestions.

@thomas-fossati thomas-fossati merged commit ca718d8 into veraison:main Jan 8, 2025
5 checks passed
@Akhilesh-max Akhilesh-max deleted the refactoring branch January 8, 2025 16:36
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.

2 participants