Remove needless if.