Ukraine gave up its nukes to Russia after the collapse of the USSR with a treaty-promise that Russia will never be an aggressor.
Iran has now been bombed into regime change for trying to even get to that point.
If there's one thing every 2-bit aspiring dictator now knows, it's the only way to protect yourself is to get nukes.
This wasn't a non-proliferation enforcement action, this was the nail in the coffin of all future non-proliferation efforts.