Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
pull/32486/head
Matthieu MOREL 1 month ago committed by GitHub
parent 8d0bbdbb37
commit 01f40d9fbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -733,9 +733,7 @@ func (m *Manager) findChartURL(name, version, repoURL string, repos map[string]*
var entry repo.ChartVersions
entry, err = findEntryByName(name, cr)
if err != nil {
// TODO: Where linting is skipped in this function we should
// refactor to remove naked returns while ensuring the same
// behavior
// TODO: Consider refactoring this function to reduce the number of returned values while preserving behavior.
return url, username, password, insecureSkipTLSVerify, passCredentialsAll, caFile, certFile, keyFile, err
}
var ve *repo.ChartVersion

@ -1237,7 +1237,7 @@ func upgradeClientSideFieldManager(info *resource.Info, dryRun bool, fieldValida
return patched, err
}
// Patch reource using server-side apply
// Patch resource using server-side apply
func patchResourceServerSide(target *resource.Info, dryRun, forceConflicts bool, fieldValidationDirective FieldValidationDirective) error {
helper := resource.NewHelper(
target.Client,

Loading…
Cancel
Save