When molecule is linear, these two bond dipoles cancel each other out (i.e. the vector addition of the dipoles equals zero) and the overall molecule has a zero dipole moment