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

Return types.UserInfo objects instead of pointers #115

Merged

Conversation

adammohammed
Copy link
Contributor

There isn't a good reason for returning pointers to the UserInfo type. When returned, there aren't any method operations on the type that will mutate it. It can and should be treated as a pure data object and updating the interface to remove the pointer makes this clearer.

There isn't a good reason for returning pointers to the UserInfo
type. When returned, there aren't any method operations on the type
that will mutate it. It can and should be treated as a pure data
object and updating the interface to remove the pointer makes this clearer.

Signed-off-by: Adam Mohammed <admohammed@equinix.com>
@adammohammed adammohammed requested a review from a team March 15, 2023 15:24
@adammohammed adammohammed requested a review from a team as a code owner March 15, 2023 15:24
@jnschaeffer jnschaeffer merged commit e87b02a into infratographer:main Mar 15, 2023
@adammohammed adammohammed deleted the userinfo-pointer-cleanup branch March 20, 2023 15:57
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