jshint: fix switch warning