An armed neutrality was preserved in both world wars .