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

ipam: remove always-nil NewCIDRRange error return value #26706

Merged
merged 1 commit into from Jul 17, 2023

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Jul 7, 2023

NewCIDRRange will never return an error, so omit the error return value to simplify some call sites.

Also fold the implementations of NewCIDRRange and NewAllocatorCIDRRange as the latter is only called by the former.

NewCIDRRange will never return an error, so omit the error return value
to simplify some call sites.

Also fold the implementations of NewCIDRRange and NewAllocatorCIDRRange
as the latter is only called by the former.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser added kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact. sig/ipam IP address management, including cloud IPAM area/ipam Impacts IP address management functionality. labels Jul 7, 2023
@tklauser tklauser requested review from a team as code owners July 7, 2023 10:40
@tklauser
Copy link
Member Author

tklauser commented Jul 7, 2023

/test

Copy link
Contributor

@tommyp1ckles tommyp1ckles left a comment

Choose a reason for hiding this comment

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

looks good

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 17, 2023
@gandro gandro merged commit 6f50a77 into main Jul 17, 2023
180 checks passed
@gandro gandro deleted the pr/tklauser/ipam-remove-always-nil-err-ret branch July 17, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ipam Impacts IP address management functionality. kind/cleanup This includes no functional changes. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/ipam IP address management, including cloud IPAM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants