From 5a1386f727b2fe08b5ea2c5ac379f1e860acd51b Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Wed, 4 Jan 2017 14:42:00 -0500 Subject: [PATCH] remove redundant type check --- src/blocks/scratch3_sound.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/blocks/scratch3_sound.js b/src/blocks/scratch3_sound.js index cc984da3f..bbb63e46f 100644 --- a/src/blocks/scratch3_sound.js +++ b/src/blocks/scratch3_sound.js @@ -53,8 +53,6 @@ Scratch3SoundBlocks.prototype._getSoundIndex = function (soundName, util) { if (Number(soundName)) { soundName = Number(soundName); - } - if (typeof soundName === 'number') { var len = util.target.sprite.sounds.length; index = MathUtil.wrapClamp(soundName, 1, len) - 1; } else {