CC Sabathia threw another bullpen session Monday and his right knee held up fine, so the Yankees left-hander is still scheduled to take the mound Wednesday in Detroit.

As rough as the season has been for the 39-year-old, Sabathia said he’s happy he even has the option to pitch — and added he likely would have had season-ending surgery already if the Yankees didn’t have a chance to win the World Series.

Asked if the thought of another title has helped keep him going through four IL stints this year alone, Sabathia said: “It’s the only thing. I think if this team wasn’t in a position to win a championship, I probably would have had the surgery a long time ago.”

Sabathia has talked about having his knee replaced once his playing days are over — which he hopes isn’t for another month-plus.