Remove unneeded test inside conditional.