Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos committed Oct 24, 2023
1 parent c8e8241 commit c8487d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/sound.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit c8487d3

Please sign in to comment.