He didn't say that it was specifically during wartime.
They asked him back in 2019 if they'd ever send a carrier back into the Persian Gulf and he said he would if necessary.
..and here is one going a year later in 2020
DUBAI, United Arab Emirates (AP) — The USS Nimitz aircraft carrier safely transited on Friday through the Strait of Hormuz, the world’s most important chokepoint for oil shipments, the U.S. Navy said, as tensions with Iran continue to simmer. In a “scheduled” maneuver, the U.S. sent the carrier...apnews.com
US carrier transits Strait of Hormuz amid tensions with Iran
USS Nimitz Flight Operations In The Persian Gulf (2020)
Nor did Ritter say the US regime would position its carriers in the Persian Gulf in the event that it decided to launch an aggression on Iran.