From c8487d3e5d6297697bd6d4b7335aaad7b0aee100 Mon Sep 17 00:00:00 2001 From: Diego Marcos Segura Date: Mon, 23 Oct 2023 17:45:22 -0700 Subject: [PATCH] Fix lint issues --- src/components/sound.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/sound.js b/src/components/sound.js index a2e48057cc4..1f41c56547c 100644 --- a/src/components/sound.js +++ b/src/components/sound.js @@ -63,10 +63,9 @@ module.exports.Component = registerComponent('sound', { sound.setLoopStart(data.loopStart); // With a loop start specified without a specified loop end, the end of the loop should be the end of the file - if(data.loopStart != 0 && data.loopEnd == 0){ + if (data.loopStart !== 0 && data.loopEnd === 0) { sound.setLoopEnd(sound.buffer.duration); - } - else { + } else { sound.setLoopEnd(data.loopEnd); }