There are different barometers for what makes a banana republics and the United States has been sliding in that direction. Could a friendly judge contrive to keep certain polling places open to favor his party? Sure. That kind of thing has been going on here for a good two centuries. The judge generally wouldn’t also be the candidate’s lawyer, but I won’t pretend that kind of thing was unknown in say Philly or Chicago.