Add missing semicolon.
Simplify conditional expression.