Revert "Check that a variable is set before trying to use it"

This reverts commit f4fc0abf9f.
This commit is contained in:
nikki 2014-09-26 16:21:01 +02:00
parent 075e459f2e
commit 8491eb1c0e

View file

@ -427,7 +427,7 @@ function parseDiscogsRelease(data) {
}
// Track number (only for Vinyl and Cassette)
if (release.discs[releaseNumber-1].format && release.discs[releaseNumber-1].format.match(/(Vinyl|Cassette)/)
if ( release.discs[releaseNumber-1].format.match(/(Vinyl|Cassette)/)
&& discogsTrack.position.match(/^[A-Z]+[\.-]?\d*/) ){
track.number = discogsTrack.position;
}