remove redundant type check

This commit is contained in:
Eric Rosenbaum 2017-01-04 14:42:00 -05:00
parent 3bf9238e0c
commit 5a1386f727

View file

@ -53,8 +53,6 @@ Scratch3SoundBlocks.prototype._getSoundIndex = function (soundName, util) {
if (Number(soundName)) { if (Number(soundName)) {
soundName = Number(soundName); soundName = Number(soundName);
}
if (typeof soundName === 'number') {
var len = util.target.sprite.sounds.length; var len = util.target.sprite.sounds.length;
index = MathUtil.wrapClamp(soundName, 1, len) - 1; index = MathUtil.wrapClamp(soundName, 1, len) - 1;
} else { } else {