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

loadbalancer: Simplify several parts #347

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

nachtjasmin
Copy link
Contributor

just to make the linter happy :3

@nachtjasmin nachtjasmin requested a review from 89Q12 October 22, 2024 08:27
@nachtjasmin nachtjasmin enabled auto-merge (rebase) October 22, 2024 08:28
Copy link

codeclimate bot commented Oct 22, 2024

Code Climate has analyzed commit bc891ac and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 20.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 57.4% (0.0% change).

View more on Code Climate.

This removes one unused `svc` parameter and removes unnecessary nil
checks that are already covered by the `len()` that's coming directly
afterwards.
@nachtjasmin nachtjasmin force-pushed the joster/change-xloutunxwsqq branch from 6fcb845 to bc891ac Compare October 22, 2024 09:41
Copy link
Contributor

@89Q12 89Q12 left a comment

Choose a reason for hiding this comment

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

Just a comment, looks good just not sure if we should bother cleaning up everything?

@@ -185,7 +185,7 @@ func (m *mgr) prefixes(ctx context.Context) ([]*prefix, error) {
return ret, nil
}

func (m *mgr) allocateAddress(ctx context.Context, svc *v1.Service, fam v1.IPFamily) (net.IP, error) {
func (m *mgr) allocateAddress(ctx context.Context, fam v1.IPFamily) (net.IP, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Huh, so the svc is never used, interesting :D

@nachtjasmin nachtjasmin merged commit a4ea202 into main Oct 22, 2024
8 of 9 checks passed
@nachtjasmin nachtjasmin deleted the joster/change-xloutunxwsqq branch October 22, 2024 09:51
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