Add missing semicolon.
Simplify conditional expression.
Merge pull request #713 from korun/patch-2

Add semicolon and simplify expr in assigment