Removed useless default branch of switch statement.
The problem was caught by sanitizer build.