Skip to content

Commit

Permalink
Reimplement log
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshankman committed Nov 16, 2024
1 parent 69b07d3 commit 268d3cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gapless5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,7 @@ function Gapless5(options = {}, deprecated = {}) { // eslint-disable-line no-unu
this.removeTrack = (pointOrPath) => {
const index = typeof pointOrPath === 'number' ? pointOrPath : this.findTrack(pointOrPath);
if (index < 0 || index >= this.playlist.numTracks()) {
log.warn(`Cannot remove missing track at index: ${index}`);
return;
}

Expand Down

0 comments on commit 268d3cd

Please sign in to comment.