Add default case to switch

This commit is contained in:
Paul Kaplan 2017-09-19 10:26:18 -04:00
parent 27782c97c6
commit c94a5e37f6

View file

@ -123,6 +123,8 @@ Blockly.FieldColourSlider.prototype.createColourStops_ = function(channel) {
case 'brightness':
stops.push(goog.color.hsvToHex(hsv[0], hsv[1], 255 * n / 360));
break;
default:
throw new Error("Unknown channel for colour sliders: " + channel);
}
}
return stops;