How does the sentence end?

Frank needed clean leggings to wear after tripping in mud and getting his straight pants dirty, so he decided on capris. He took off the
straight pants because they were dirty.