Useless var & ternary use

Same effect, one line