Open-and-Shut Case

What does the expression “open-and-shut case” mean?

Definition: a situation, especially a legal proceeding, with a clear, certain outcome

Example: The criminal tried to argue that his accomplice was responsible, but he was convicted anyway—it was an open-and-shut case.