[bug] [33732] Removed unnecessary 'if' ternary
Close #3596