dodge a bullet
📖 generalMeaning
To narrowly avoid a dangerous, difficult, or unpleasant situation or consequence.
Literal Meaning
To physically avoid being hit by a fired bullet.
Example
“I thought I was going to be laid off, but I dodged a bullet when they only cut positions in other departments.”