Why not replace these with a `return;`? The fallthrough is undesirable. And I would delete the blank lines too. I agree with @philix that this function should be inlined.