I do not like our switch; I'll add if condition there. And you and see that the block already prevents any other value, so default branch is useless.