If the provisions of the instrument by which the alteration referred to in section 30 of this title is made are wholly inconsistent with the terms and nature of such previous devise or bequest, such instrument shall operate as a revocation thereof, unless such provisions depend on a condition or contingency, and such condition is not performed, or such contingency does not happen.