Removes uneccessary semicolon.
Removes if(true) statements.
Removes pointless boolean comparisons in conditions.
Converts ternary operators to simpler conditions.