fixed code style for assignments inside if conditions