lint: fix redundantAssignment warnings