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

Address return consistency #355

Closed

Conversation

sebrandon1
Copy link
Collaborator

I went through the entire codebase and addressed inconsistencies with return statements to make everything the "same".

Now we can expect:

  • All "NewBuilder" funcs to early return if any params are empty.
  • All With... and operation funcs are modified to return a nil pointer to the builder and the error (if return values are applicable).

@sebrandon1 sebrandon1 force-pushed the newbuilder_validation branch 4 times, most recently from 33e7b4b to 701df76 Compare April 25, 2024 16:25
@sebrandon1 sebrandon1 force-pushed the newbuilder_validation branch 10 times, most recently from 4b15168 to d4a29cd Compare May 2, 2024 13:53
@sebrandon1 sebrandon1 force-pushed the newbuilder_validation branch 4 times, most recently from 4a38ea2 to b26e659 Compare May 9, 2024 15:13
@sebrandon1 sebrandon1 force-pushed the newbuilder_validation branch 5 times, most recently from 3817184 to 010f891 Compare May 20, 2024 21:32
@sebrandon1 sebrandon1 force-pushed the newbuilder_validation branch 2 times, most recently from b00264d to 38119dc Compare January 8, 2025 14:55
@sebrandon1 sebrandon1 force-pushed the newbuilder_validation branch 4 times, most recently from a179df8 to a3d8f9b Compare January 16, 2025 22:04
@sebrandon1 sebrandon1 force-pushed the newbuilder_validation branch 3 times, most recently from 0d5077b to 4c59a60 Compare January 21, 2025 19:03
kononovn pushed a commit that referenced this pull request Jan 22, 2025
* Added unit tests for the Restore Get, Exists, Create, Update, and
  Delete methods.
* Updated returns to be more in line with #355.
* Added coverage to NewRestoreBuilder and PullRestore functions for when
  the apiClient is nil.
@sebrandon1 sebrandon1 force-pushed the newbuilder_validation branch 2 times, most recently from 8287c03 to 44bcda3 Compare January 23, 2025 16:28
add argocd applications updates
@sebrandon1 sebrandon1 force-pushed the newbuilder_validation branch from 44bcda3 to 9b16410 Compare January 27, 2025 16:52
@sebrandon1
Copy link
Collaborator Author

Closing as all of the issues with returns have been addressed in other PRs.

@sebrandon1 sebrandon1 closed this Jan 27, 2025
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