Remove unnecessary condtional assignment. The next line ignores the result of the assignment with the same condition.