Will there be another army takeover in Pakistan? Another coup?

Was Nawaz not required to resign (govt dissolved afterwards)?