TO-SQUASH: simplify switch statement

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>