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

Remove redundant nil check for Ignition in setDomainIgnition function #361

Conversation

so-sahu
Copy link
Contributor

@so-sahu so-sahu commented Jul 30, 2024

Proposed Changes

The setDomainIgnition function is called only when machine.Spec.Ignition is not nil (see reference).

Therefore, it does not make sense to validate again inside the function if Ignition is nil (see reference). Hence, this redundant check can be removed.

@so-sahu so-sahu self-assigned this Jul 30, 2024
@so-sahu so-sahu requested a review from a team as a code owner July 30, 2024 06:55
@lukasfrank lukasfrank merged commit de56ba7 into ironcore-dev:main Jul 30, 2024
10 checks passed
@afritzler afritzler added the enhancement New feature or request label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/XS
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants