A statement in a policy, which imports that there is an intention to do or not to do a thing which materially affects the risk, is a warranty that such act or omission will take place.

(Enacted by Stats. 1935, Ch. 145.)