refactor: add explicit parentheses for force condition
Add explicit parentheses around the two disjuncts in the force condition to make the intended grouping unambiguous and easier to read. Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
3dff3d610a
commit
e87ddd77f1
|
|
@ -3451,7 +3451,7 @@ func (st *HelmState) flagsForUpgrade(helm helmexec.Interface, release *ReleaseSp
|
|||
|
||||
flags = append(flags, st.timeoutFlags(release, opt)...)
|
||||
|
||||
if release.Force != nil && *release.Force || release.Force == nil && st.HelmDefaults.Force {
|
||||
if (release.Force != nil && *release.Force) || (release.Force == nil && st.HelmDefaults.Force) {
|
||||
if helm.IsHelm4() {
|
||||
flags = append(flags, "--force-replace")
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue