From e084a764854edffd297fd09eeeb37d2ac346357c Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Thu, 13 Oct 2016 11:35:52 -0400 Subject: [PATCH] lint --- src/import/sb2import.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/import/sb2import.js b/src/import/sb2import.js index 50911c83e..68974cadf 100644 --- a/src/import/sb2import.js +++ b/src/import/sb2import.js @@ -64,9 +64,9 @@ function parseScratchObject (object, runtime, topLevel) { } } // Sounds from JSON - if (object.hasOwnProperty('sounds')) { - for (var i = 0; i < object.sounds.length; i++) { - var sound = object.sounds[i]; + if (object.hasOwnProperty('sounds')) { + for (var s = 0; s < object.sounds.length; s++) { + var sound = object.sounds[s]; sprite.sounds.push({ format: sound.format, fileUrl: 'https://cdn.assets.scratch.mit.edu/internalapi/asset/'