Remove unnecessary If statement.