diff: remove ternary operator evaluating always to true