mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
remove redundant type check
This commit is contained in:
parent
3bf9238e0c
commit
5a1386f727
1 changed files with 0 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue