Merge two adjacent ifs.